// 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
No description available.
The NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES structure specifies a driver-defined context area for an added device.
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.
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.
MiniportFilterResourceRequirements