Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>globalalloc</b> allocate memory from global heap http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GlobalAlloc          Allocate Memory From Global Heap

HANDLE GlobalAlloc(wFlags, dwBytes)
WORD wFlags;
DWORD dwBytes; /* Bytes requested */

             wFlags
        |-----------------|
        | GMEM_DDESHARE   |
        | GMEM_DISCARDABLE|
        | GMEM_FIXED      |
        | GMEM_NOT_BANKED |
        | GMEM_MOVEABLE   |
        | GMEM_NOCOMPACT  |
        | GMEM_NODISCARD  |
        | GMEM_NOTIFY     |
        | GMEM_ZEROINIT   |
        +-----------------+

Returns:    Handle to global memory or NULL if error.

See Also: GlobalCompact GlobalDiscard GlobalFree GlobalLock GlobalUnlock

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson