WOWGlobalLockSize16

The WOWGlobalLockSize16 function combines the functionality of the WOWGlobalLock16 and 16-bit GlobalSize functions. This function can only be called in the context of a thunk.

DWORD WINAPI WOWGlobalLockSize16(
  WORD hMem,
  PDWORD pcb
);

Parameters

  • hMem
    [in] Handle to the object in the 16-bit global heap. This value must have been obtained from the WOWGlobalAlloc16 or WOWGlobalAllocLock16 function.
  • pcb
    Receives the size of the object in the 16-bit global heap.

Return Value

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

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
WOWGlobalAlloc16
WOWGlobalAllocLock16
WOWGlobalLock16