This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns the icon of the program associated with the current data file.
#define INCL_WINWORKPLACE #include <os2.h> WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */ HPOINTER hPointer; /* Handle of the icon of the program with which the data file is associated. */ hPointer = _wpQueryAssociatedFileIcon(somSelf);