Share via


WOWGlobalLock16

The WOWGlobalLock16 function locks a global memory object and returns a pointer to the first byte of the object's memory block. This function can only be called in the context of a thunk.

DWORD WINAPI WOWGlobalLock16(
  WORD hMem
);

Parameters

Return Value

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.

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header

Declared in Wownt32.h.

Library

Use Wow32.lib.

DLL Requires Wow32.dll.

See Also

Generic Thunks Overview
32-bit Generic Thunk Functions
WOWGetVDMPointerFix
WOWGlobalAlloc16
WOWGlobalAllocLock16