NetFreeSharedMemory routine

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 NetFreeSharedMemory;

VOID NetFreeSharedMemory(
  _In_  NDIS_HANDLE ProviderContext,
  _In_  NDIS_HANDLE SharedMemoryProviderContext
)
{ ... }

Parameters

ProviderContext [in]

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.

SharedMemoryProviderContext [in]

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

Version

Supported in NDIS 6.20 and later.

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

See also

NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS
NdisFreeSharedMemory
NetAllocateSharedMemory

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft