NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS structure (ndis.h)

The NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS structure specifies shared memory provider characteristics.

Syntax

typedef struct _NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS {
  NDIS_OBJECT_HEADER             Header;
  ULONG                          Flags;
  NDIS_HANDLE                    ProviderContext;
  ALLOCATE_SHARED_MEMORY_HANDLER AllocateSharedMemoryHandler;
  FREE_SHARED_MEMORY_HANDLER     FreeSharedMemoryHandler;
} NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS, *PNDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS;

Members

Header

The NDIS_OBJECT_HEADER structure for the structure (NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS). The driver sets the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_SHARED_MEMORY_PROVIDER_CHARACTERISTICS, the Revision member to NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS_REVISION_1, and the Size member to NDIS_SIZEOF_SHARED_MEMORY_PROVIDER_CHARACTERISTICS_REVISION_1.

Flags

Reserved for NDIS.

ProviderContext

An NDIS_HANDLE to a block of driver-allocated context information that stores information about the provider. NDIS passes the context information in calls to NetXxxSharedMemory functions at the ProviderContext parameter.

AllocateSharedMemoryHandler

An entry point for the NetAllocateSharedMemory function.

FreeSharedMemoryHandler

An entry point for the NetFreeSharedMemory function.

Remarks

To specify entry points for shared memory services, an NDIS driver initializes an NDIS_SHARED_MEMORY_PROVIDER_CHARACTERISTICS structure and passes it to the NdisSetOptionalHandlers function.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.20 and later.
Header ndis.h (include Ndis.h)

See also

NDIS_OBJECT_HEADER

NdisSetOptionalHandlers

NetAllocateSharedMemory

NetFreeSharedMemory