WOWGlobalLock16

The WOWGlobalLock16 function locks a global memory object and returns a pointer to the first byte of the object's memory block.

DWORD WINAPI WOWGlobalLock16(
  WORD hMem  // handle to the global memory object
);
 

Parameters

hMem
Handle to the object in the 16-bit global heap. This value must have been obtained from the WOWGlobalAlloc16 or WOWGlobalAllocLock16 function.

Return Values

Returns a pointer to the first byte of the object's memory block if successful. Otherwise, returns NULL.

Remarks

The pointer returned is a 16:16 pointer that cannot be dereferenced directly in 32-bit code. Instead, call the WOWGetVDMPointerFix function.

See Also

WOWGetVDMPointerFix, WOWGlobalAlloc16, WOWGlobalAllocLock16