Platform SDK: Active Directory, ADSI, and Directory Services |
The IDsDisplaySpecifier::GetIconLocation method fetches the location of an icon from the display specifier, returning both the filename and the resource ID as required.
HRESULT GetIconLocation( LPCWSTR pszObjectClass, DWORD dwFlags, LPWSTR pszBuffer, INT cchBuffer, INT *presid );
dwFlags | Description |
---|---|
DSGIF_ISNORMAL | Standard icon. |
DSGIF_OPEN | Open icon, for example, open folders. |
DSGIF_DISABLED | Disabled icon, for example, disabled user account. |
DSGIF_GETDEFAULTICON | Default document icon from Shell32. |
This method returns an HRESULT value.
The caller of this method can load the icon image into the application, or display this information in a dialog.
The default icon is returned if the object has no icon.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsclient.h.
Library: Included as a resource in Dsuiext.dll.
Active Directory Display Interfaces, IDsDisplaySpecifier, IDsDisplaySpecifier::GetIcon