NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

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;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ndis-_ndis_miniport_add_device_registration_attributes)

_NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure

Description

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

Members

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.

See also

MiniportAddDevice

MiniportFilterResourceRequirements

MiniportInitializeEx

MiniportRemoveDevice

MiniportStartDevice

NDIS_MINIPORT_INIT_PARAMETERS

NDIS_OBJECT_HEADER

NdisMSetMiniportAttributes