This instance method is called to allow the object to query the data to be used for its current icon.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ PICONINFO pIconInfo; /* Pointer to a buffer. */ ULONG ulReturn; /* Buffer size or number of bytes required to hold the output data. */ ulReturn = _wpQueryIconData(somSelf, pIconInfo);