Platform SDK: Active Directory, ADSI, and Directory Services |
The iconic images used to represent a class object can be read from the Display Specifier. Moreover, each class can store multiple icon states. For example, a folder class can have bitmaps for the open, closed, and disabled states. The current implementation allows up to sixteen different icon states per class.
The attribute is named iconPath and can be specified in one of two ways.
state,ICOfilename
or
state,DLLname,resourceID
In this example, the state is an integer with a value between 0 and 15. The value 0 is defined to be the default or "closed" state of the icon. The value 1 is defined to be the "open" state of the icon. The value 2 is the disabled state. The other values are application-defined.
The ICOfilename or DLLname must be the name of a file in the local computer's file search path.
The resourceID is a zero-based index into the DLL's resource fork list of icons.
When you add a value for an icon to iconPath, follow these rules:
Do not use ADS_PROPERTY_CLEAR or ADS_PROPERTY_UPDATE.