BoxedAppSDK_SharedMem_Unlock
Description
The function releases a pointer (but not the memory block itself) that was used to access a shared memory block.
The pointer is obtained with BoxedAppSDK_SharedMem_Lock and corresponds to a memory block allocated using BoxedAppSDK_SharedMem_Alloc.
This function ensures that the shared memory system remains consistent when multiple processes access the same memory region.
Syntax
typedef LONGLONG BOXEDAPP_SHARED_PTR;
BOOL __stdcall BoxedAppSDK_SharedMem_Unlock(BOXEDAPP_SHARED_PTR shared_ptr);type
BOXEDAPP_SHARED_PTR = LargeInt;
function BoxedAppSDK_SharedMem_Unlock(shared_ptr: DWORD): BOOL; stdcall;Parameters
shared_ptr
A handle to the shared memory block that was previously locked with BoxedAppSDK_SharedMem_Lock.
Remarks
Unlike BoxedAppSDK_SharedMem_Free, this function does not release the memory itself — it only releases the lock that allows direct access to the block’s data. The shared memory block remains available to all attached processes until explicitly freed.
Always call BoxedAppSDK_SharedMem_Unlock after finishing read or write operations on a locked memory block.