Translates a memory handle to a FAR (32-bit) pointer, which points to the memory allocated to this handle.
Syntax
void FAR * _HandToPtr(MHANDLE hand)
MHANDLE hand; /* Memory handle. */
Remarks
Visual FoxPro may reorganize memory any time control is passed to it or to another routine outside of the current module.
Note _HandToPtr( ) doesn't cause memory reorganization.
The pointer returned by _HandToPtr( ) may become invalid any time control is passed back to Visual FoxPro, unless the MHANDLE is locked. Don't keep pointers to unlocked memory handles across an external function call, unless it is documented that the call doesn't cause memory reorganization.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.