This function is specific to OS/2 Version 2.1 or higher.

This function allows an appplication to declare that a pointer it created can now be used by ANY process in the system (not just the process that created the pointer).

#define INCL_WINPOINTERS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HPOINTER    hptr;      /*  Handle of pointer. */
PID         pid;       /*  Process identity. */
BOOL        fDestroy;  /*  Pointer destruction flag. */
BOOL        rc;        /*  Success indicator. */

rc = WinSetPointerOwner(hptr, pid, fDestroy);


[Back] [Next]