Platform SDK: Active Directory, ADSI, and Directory Services |
The IDsDisplaySpecifier::GetIcon method loads the icon for a given object class.
HICON GetIcon( LPCWSTR pszObjectClass, DWORD dwFlags, INT cxIconr, INT cyIconr );
dwFlags | Description |
---|---|
DSGIF_ISNORMAL | Standard icon. |
DSGIF_OPEN | Open icon, for example, open folders. |
DSGIF_DISABLED | Disabled icon, for example, a disabled user account. |
DSGIF_GETDEFAULTICON | Default document icon from Shell32. |
The method returns a handle to the loaded icon if the operation is successful. Otherwise, it return a NULL handle.
This method looks up the resource name from the display specifier and then loads the object from the file. The icon information is stored in the display specifier. Fifteen different icon states (open, closed, disabled, and so on) are supported. These icons are used for displaying the directory object.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsclient.h.
Library: Included as a resource in Dsuiext.dll.