This example returns information about the icon associated with the class if pIconInfo is not NULL.
SOM_Scope ULONG SOMLINK CalendarM_wpclsQueryIconData(M_Calendar *somSelf, PICONINFO pIconInfo) { M_CalendarData *somThis = M_CalendarGetData(somSelf); M_CalendarMethodDebug("M_Calendar","myfM_wpclsQueryIconData"); if (pIconInfo) { pIconInfo->fFormat = ICON_RESOURCE; pIconInfo->hmod = _clsQueryModuleHandle(somSelf); pIconInfo->resid = ID_ICON; } /* endif */ return (sizeof(ICONINFO)); }