COleClientItem::GetIconFromRegistry

HICON GetIconFromRegistry( ) const;

static HICON GetIconFromRegistry( CLSID& clsid );

Return Value

A valid handle to the icon resource, or NULL if the server's icon, or a default icon, can't be found.

Parameters

clsid

A reference to the CLSID for the server associated with the icon.

Remarks

Call this member function to retrieve a handle to an icon resource associated with the server of a particular CLSID.

This member function will not start the server or obtain an icon dynamically, even if the server is already running. Instead, this member function opens the server's executable image and retrieves the static icon associated with the server as it was registered.

COleClientItem OverviewClass MembersHierarchy Chart