Shared Memory

All attached processes have access to shared memory, which is implemented using memory-mapped files. This memory stores the data of the virtual file system and the virtual registry. Developers can allocate and release memory blocks within this shared memory using the functions BoxedAppSDK_SharedMem_Alloc and BoxedAppSDK_SharedMem_Free.

BoxedAppSDK_SharedMem_Alloc returns a handle that points to a memory block. To get direct access to the allocated block, use the function BoxedAppSDK_SharedMem_Lock, which returns a pointer. Once the data is read or modified, the function BoxedAppSDK_SharedMem_Unlock should be called.

This API is conceptually similar to the WinAPI functions LocalAlloc, LocalLock, LocalUnlock, and LocalFree.