2.2.1.14 CDbColId

The CDbColId structure contains an OLE-DB Column ID.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

eKind

padding (variable)

...

GUID (16 bytes)

...

...

ulId

vString (variable)

...

eKind (4 bytes): MUST be set to one of the following values that indicates the contents of the GUID, ulId, and vString fields.

Value

Meaning

DBKIND_GUID_NAME

0x00000000

vString contains a property name.

DBKIND_GUID_PROPID

0x00000001

ulId contains a 4-byte integer indicating the property ID.

DBKIND_PGUID_NAME

 0x00000003

vString contains a property name. This value MUST be treated the same as DBKIND_GUID_NAME.

DBKIND_PGUID_PROPID

 0x00000004

ulId contains a 4-byte integer indicating the property ID. This value MUST be treated the same as DBKIND_GUID_PROPID.

padding (variable): This field MUST be 0 to 7 bytes in length. The length of this field MUST be such that the following field begins at an offset that is a multiple of 8 bytes from the beginning of the message that contains this structure. If this field is present (that is, its length is nonzero), the value that it contains is arbitrary. The content of this field MUST be ignored by the receiver.

GUID (16 bytes): GUID which uniquely identifies the property set for the property.

ulId (4 bytes): If eKind is DBKIND_GUID_PROPID, this field contains an unsigned integer specifying the property ID. If eKind is DBKIND_GUID_NAME, this field contains an unsigned integer specifying the number of Unicode characters contained in the vString field.

vString (variable): A non-null-terminated Unicode string representing the property name. It MUST be omitted unless the eKind field is set to DBKIND_GUID_NAME.