The CreateSharedMemory function creates a section of memory that is shared by client processes and the security package.
- MaxSize [in]
Specifies the maximum size of the shared memory.
- InitialSize [in]
Specifies the initial size of the shared memory.
The function returns a pointer to the block of shared memory, or NULL if the block was not reserved.
Creating a shared section for each client is not advisable because it is a resource-intensive operation and may exhaust system resources.
The package's clients can write to shared memory which makes it susceptible to attack. Data in the shared segment should not be trusted.
Use the DeleteSharedMemory function to release memory reserved by the CreateSharedMemory function.
Minimum supported client
|Windows XP [desktop apps only]|
Minimum supported server
|Windows Server 2003 [desktop apps only]|