WOWGlobalAlloc16
The WOWGlobalAlloc16 function allocates the specified number of bytes from the 16-bit global heap.
WORD WINAPI WOWGlobalAlloc16(
WORD wFlags, // object allocation attributes
DWORD cb // number of bytes to allocate
);
Parameters
-
wFlags
-
Specifies how to allocate memory. This parameter can be a combination 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, and GPTR.
-
cb
-
Specifies the number of bytes to allocate.
Return Values
Returns the handle of the newly allocated memory object if successful. Otherwise, returns NULL.
See Also
WOWGlobalLock16