Creates a shared memory object.
HANDLE RtCreateSharedMemory( DWORD flProtect, DWORD MaximumSizeHigh, DWORD MaximumSizeLow, LPCTSTR lpName, VOID ** location );
flProtect
MaximumSizeHigh
MaximumSizeLow
lpName
MaximumSizeLow
parameter because it was already set by the creation process.
location
Multiple processes can have handles of the same shared memory object, enabling use of the object for data sharing. To share an object, a process can specify the name of a shared memory object in a call to RtCreateSharedMemory.
To close the handle, use CloseHandle. When the process terminates, the system automatically closes the handle. When its last handle closes, the shared memory object is destroyed.
RtSharedMemory can also be used from a Windows application to create an iwin32 shared memory object.
Space for shared memory objects comes from an iwin32 virtual memory pool; the maximum size of that pool is configurable in the INtime Node Manager, advanced tab, iwin32 section, SegSize in multiples of 4 Mbytes.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h | iwin32.lib |
Note
CloseHandle, iwin32 API, iwin32 Overview