FreeSharedMemory function

The FreeSharedMemory function frees a block of shared memory previously allocated by the AllocateSharedMemory function.

Syntax


VOID FreeSharedMemory(
  _In_ PVOID SharedMem,
  _In_ PVOID Memory
);

Parameters

SharedMem [in]

Pointer to the shared memory section previously reserved using the CreateSharedMemory function.

Memory [in]

Pointer to the memory previously allocated from the shared memory section specified by the SharedMem parameter, using the AllocateSharedMemory function.

Return value

This function does not return a value.

Remarks

A pointer to the FreeSharedMemory function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecpkg.h

See also

AllocateSharedMemory
CreateSharedMemory
LSA_SECPKG_FUNCTION_TABLE
SpInitialize

 

 

Show: