This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method sets the visual icon for the current program to the appropriate default or custom icon.
#define INCL_WINWORKPLACE #include <os2.h> WPProgram *somSelf; /* Pointer to the object on which the method is being invoked. */ PFEA2LIST pfeal; /* Pointer to a list of FEA2 structures containing icon extended attributes (EAs). */ BOOL rc; /* Success indicator. */ rc = _wpSetProgIcon(somSelf, pfeal);