The AllocateSharedMemory function allocates a block of shared memory from a section of memory previously reserved by a call to the CreateSharedMemory function.
- SharedMem [in]
Pointer to a section of reserved shared memory.
- Size [in]
Specifies the amount of shared memory to allocate, in bytes.
If the function succeeds, the return value is a pointer to the allocated memory.
If the function fails, the return value is NULL.
Minimum supported client
|Windows XP [desktop apps only]|
Minimum supported server
|Windows Server 2003 [desktop apps only]|
Build date: 1/2/2013