FREE_SHARED_MEMORY_HANDLER callback function (ndis.h)

The NetFreeSharedMemory function (FREE_SHARED_MEMORY_HANDLER entry point) is called by NDIS when a driver frees shared memory from a shared memory provider.

Syntax

FREE_SHARED_MEMORY_HANDLER FreeSharedMemoryHandler;

void FreeSharedMemoryHandler(
  [in] NDIS_HANDLE ProviderContext,
  [in] NDIS_HANDLE SharedMemoryProviderContext
)
{...}

Parameters

[in] ProviderContext

An NDIS_HANDLE to a block of driver-allocated context information that identifies the provider. The provider supplied this information in the ProviderContext member of the NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS structure.

[in] SharedMemoryProviderContext

A handle for a context area that identifies the shared memory block. This is the handle that the shared memory provider supplied at the pSharedMemoryProviderContext parameter of the NetAllocateSharedMemory function.

Return value

None

Remarks

NDIS calls the NetFreeSharedMemory function of a shared memory provider when a driver calls the NdisFreeSharedMemory function.

The shared memory provider specified the entry point (FREE_SHARED_MEMORY_HANDLER) for NetFreeSharedMemory in the NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS structure.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.20 and later.
Target Platform Desktop
Header ndis.h (include Ndis.h)
IRQL PASSIVE_LEVEL

See also

NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS

NdisFreeSharedMemory

NetAllocateSharedMemory