Share via


WOWGlobalAlloc16

The WOWGlobalAlloc16 function allocates the specified number of bytes from the 16-bit global heap. This function can only be called in the context of a thunk.

WORD WINAPI WOWGlobalAlloc16(
  WORD wFlags,
  DWORD cb
);

Parameters

  • wFlags
    [in] Specifies how to allocate memory. This parameter can be one or more of the following values.

    GHND
    GMEM_DDESHARE
    GMEM_DISCARDABLE
    GMEM_FIXED
    GMEM_LOWER
    GMEM_MOVEABLE
    GMEM_NOCOMPACT
    GMEM_NODISCARD
    GMEM_NOT_BANKED
    GMEM_NOTIFY
    GMEM_SHARE
    GMEM_ZEROINIT
    GPTR

  • cb
    [in] Specifies the number of bytes to allocate.

Return Value

Returns the handle of the newly allocated memory object 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
WOWGlobalLock16