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>globalrealloc</b> adjust size of allocated global memory block http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GlobalReAlloc        Adjust Size of Allocated Global Memory Block

handle GlobalReAlloc(hMem, dwBytes, wFlags)
HANDLE hMem;
DWORD dwBytes; /* New Size */
WORD wFlags;

             wFlags
        |-----------------|
        | GMEM_DISCARDABLE|
        | GMEM_MODIFY     |
        | GMEM_MOVEABLE   |
        | GMEM_NOCOMPACT  |
        | GMEM_NODISCARD  |
        | GMEM_ZEROINIT   |
        +-----------------+

Returns:    HANDLE to reallocated global block or NULL if error.

Note:       Return value equals hMem unless GMEM_MOVEABLE or error.

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