Microsoft SDK for Java

COM_Register

The COM_Register attribute stores data for registering a class as a COM component class (coclass).

Attribute Level Generated By Directives
Class @com.register

COM_Register_attribute {
  u2 attribute_name_index;
  u4 attribute_length;
  u2 Flags;
  u2 clsidIndex;
  u2 tlbIndex;
  u2 majorTLB;
  u2 minorTLB;
  u2 progIDIndex;
  u2 descIndex;
}

Attribute Elements

attribute_name_index

This value must be a valid index into the constant pool table. The constant pool item must be a CP_Utf8 representing the string "COM_Register".

attribute_length

This value indicates the length of this attribute, excluding the initial six bytes, and must be 14.

Flags

This value indicates options for this attribute.

clsidIndex

This value must be a valid index into the GUIDPool represented by the COM_GuidPool attribute.

tlbIndex

This may be 0xffff (which means unspecified) or a valid index into the GUIDPool represented by the COM_GuidPool attribute.

tlbMajor

This value indicates the major version of the type library. By default, it is 1.

tlbMajor

This value indicates the minor version of the type library. By default, it is 0 (zero).

progIDIndex

This value must be zero (which means unspecified) or a valid index into the constant pool table. The constant pool item must be CP_Utf8 representing the string.

descIndex

This value must be zero (which means unspecified) or a valid index into the constant pool table. The constant pool item must be CP_Utf8 representing the string description of the control.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.