This function is specific to OS/2 Version 2.1 or higher. This function sets the given system pointer to the new icon specified by the ICONINFO structure.
#define INCL_WINPOINTERS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwndDesktop; /* Handle to the desktop window. */ ULONG iptr; /* Index of the desired system pointer. */ PICONINFO pIconInfo; /* Icon data. */ BOOL rc; /* Return value. */ rc = WinSetSysPointerData(hwndDesktop, iptr, pIconInfo);