This function creates a colored pointer or icon from a bit map.
#define INCL_WINPOINTERS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwndDesktop; /* Desktop-window handle or HWND_DESKTOP. */ PPOINTERINFO pptri; /* Pointer information structure. */ HPOINTER hptr; /* Pointer handle. */ hptr = WinCreatePointerIndirect(hwndDesktop, pptri);