Directory Services |
The IDsDisplaySpecifier::GetIconLocation method obtains the icon location for a given object class. The icon location includes the filename and resource identifier.
HRESULT GetIconLocation( LPCWSTR pszObjectClass, DWORD dwFlags, LPWSTR pszBuffer, INT cchBuffer, INT* presid );
Value | Meaning |
---|---|
DSGIF_ISNORMAL | Obtains the normal icon for the object class. |
DSGIF_ISOPEN | Obtains the open icon, such as an open folder, for the object class. If the object class does not have an open icon, this method attempts to obtain the normal icon for the object class. |
DSGIF_ISDISABLED | Obtains the disabled icon, such as a disabled user, for the object class. If the object class does not have a disabled icon, this method attempts to obtain the normal icon for the object class. |
DSGIF_GETDEFAULTICON | If no icon can be found for the object class, this method returns a default icon. If this flag is not specified and no icon can be found for the object class, this method returns NULL. |
DSGIF_DEFAULTISCONTAINER | If no icon can be found for the object class, this method returns the container icon as the default icon. If this flag is not specified and no icon can be found for the object class, this method returns NULL. |
Return Code | Description |
---|---|
S_OK | The method was successful. |
S_FALSE | No icon location data was found. |
E_FAIL | An unspecified error occurred. |
E_INVALIDARG | One or more parameters are invalid. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsclient.h.
Active Directory Display Interfaces, IDsDisplaySpecifier, IDsDisplaySpecifier::GetIcon