5.2.3 Tag Data

The tag data contains general information used to display the Program Item Properties dialog box. The TAGDATA structure has the following form

struct tagTAGDATA{
    WORD wID;
    WORD wItem;
    WORD cb;
    BYTE rgb[1];
};

Following are the members in the TAGDATA structure:

wID

Specifies the type of tag data. This member can have one of the following values:

Value Meaning

0x8101 Array at which the rgb member points is a null-terminated string that identifies the path for the application.
0x8102 Array at which the rgb member points is a 16-bit word value that identifies the shortcut key specified by the user.
0x8103 Minimized version of the item is displayed. If this value is specified, the array to which the rgb member points is not present in the structure and the value of the cb member is 0x06.

wItem

Specifies the index to the item the tag data refers to. If the data is not specific to a particular item, this value is 0xFFFF.

cb

Specifies the size of the TAGDATA structure, in bytes.

rgb

Specifies an array of byte values. The length of this array can be found by subtracting 6 from the value of the cb member.