Initial Release 5.0

Function : OS Memory
OSMemoryReallocate - Change the allocated size of an object
----------------------------------------------------------------------------------------------------------

#include <osmem.h>

STATUS LNPUBLIC OSMemoryReallocate(
MEMHANDLE handle,
DWORD size
);

Description :

Use this function to increase or decrease the allocated size of a memory object. If the size is increased, a new block may be allocated, but the old contents will be copied to the new block. Reallocations are allowed while the block is locked, but the caller MUST refresh all pointers to the block since it is extremely likely that the block will have been moved after the reallocation.

Parameters :

See Also :

MEMHANDLE
----------------------------------------------------------------------------------------------------------