BoxedAppSDK_SharedMem_Alloc

Description

The function allocates a block of memory in the shared memory area that is accessible to all processes attached to the same virtual environment.

This shared memory is implemented using memory-mapped files and is commonly used by BoxedApp SDK to store data such as virtual file contents or registry information.

Syntax

typedef LONGLONG BOXEDAPP_SHARED_PTR;
 
BOXEDAPP_SHARED_PTR __stdcall BoxedAppSDK_SharedMem_Alloc(int nSize);
type
BOXEDAPP_SHARED_PTR = LargeInt;
 
function BoxedAppSDK_SharedMem_Alloc(dwSize: DWORD): BOXEDAPP_SHARED_PTR; stdcall;

Parameters

dwSize
The size, in bytes, of the memory block to allocate within the shared memory.

Remarks

The memory allocated by BoxedAppSDK_SharedMem_Alloc can be accessed by all attached processes through the shared virtual environment. This ensures efficient inter-process data sharing without using standard IPC mechanisms.

Once allocated, the block can be locked and accessed using BoxedAppSDK_SharedMem_Lock, and later released with BoxedAppSDK_SharedMem_Free.

See Also