This example makes a pointer global, allowing its use by other processes.
WinSetPointerOwner(hMyPtr, 0L, FALSE);
On Exit of a DLL/Application using global pointers, the following sample code frees the resources allocated by the system.
WinSetPointerOwner(hMyPtr, CurPid, TRUE); WinDestroyPointer(hMyPtr);