ICONRESDIR

The ICONRESDIR structure contains the dimensions and color format of an individual icon image in a resource group. The structure definition provided here is for explanation only; it is not present in any standard header file.

struct ICONRESDIR { 
    BYTE Width; 
    BYTE Height; 
    BYTE ColorCount; 
    BYTE reserved; 
} ICONRESDIR; 
 

Members

Width
Specifies the width of the icon, in pixels. Acceptable values are 16, 32, and 64.
Height
Specifies the height of the icon, in pixels. Acceptable values are 16, 32, and 64.
ColorCount
Specifies the number of colors in the icon. Acceptable values are 2, 8, and 16.
reserved
Reserved; must be set to the same value as that of the reserved field in the icon file header.

Remarks

The ICONRESDIR structure is passed in the RESDIR structure if the RESDIR structure describes an icon.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.

See Also

Resources Overview, Resource Structures, RESDIR