WinSetPointerOwner - Example Code

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);


[Back: WinSetPointerOwner - Related Functions]
[Next: WinSetPointerOwner - Topics]