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

HANDLE LocalReAlloc(hMem, wBytes, wFlags)
HANDLE hMem; /* Block to be re-allotted */
WORD wBytes; /* New size */
WORD wFlags;

             wFlags
        |------------------|
        | LMEM_DISCARDABLE |
        | LMEM_MODIFY      |
        | LMEM_FIXED       |
        | LMEM_MOVEABLE    |
        | LMEM_NOCOMPACT   |
        | LMEM_NODISCARD   |
        | LMEM_ZEROINIT    |
        +------------------+

Returns:    Handle of re-allocated block or NULL.

Note:           Return value is always the save as hMem unless
                LMEM_MOVEABLE is used.

See Also: LocalAlloc LocalFree

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