NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure (ndis.h)

The NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure specifies a driver-defined context area for an added device.

Syntax

typedef struct _NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES {
  NDIS_OBJECT_HEADER Header;
  NDIS_HANDLE        MiniportAddDeviceContext;
  ULONG              Flags;
} NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES, *PNDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES;

Members

Header

The NDIS_OBJECT_HEADER structure for the NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure. Set the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES, the Revision member to NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES_REVISION_1, and the Size member to NDIS_SIZEOF_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES_REVISION_1.

MiniportAddDeviceContext

A handle for a driver-allocated context area.

Flags

Reserved.

Remarks

Miniport drivers initialize an NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure in the MiniportAddDevice function and pass this structure to the NdisMSetMiniportAttributes function.

NDIS later passes the context handle in the MiniportAddDeviceContext member of NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES to the MiniportAddDeviceContext parameter of the MiniportRemoveDevice, MiniportStartDevice, and MiniportFilterResourceRequirements functions. NDIS passes the same handle to the MiniportInitializeEx function in the MiniportAddDeviceContext member of the NDIS_MINIPORT_INIT_PARAMETERS structure.

Requirements

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

See also

MiniportAddDevice

MiniportFilterResourceRequirements

MiniportInitializeEx

MiniportRemoveDevice

MiniportStartDevice

NDIS_MINIPORT_INIT_PARAMETERS

NDIS_OBJECT_HEADER

NdisMSetMiniportAttributes