NDIS_SWITCH_NIC_SAVE_STATE structure (ntddndis.h)
The NDIS_SWITCH_NIC_SAVE_STATE structure specifies the run-time state information for a Hyper-V extensible switch port. The extensible switch extension uses this structure to save or restore run-time port information.
Syntax
typedef struct _NDIS_SWITCH_NIC_SAVE_STATE {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_SWITCH_PORT_ID PortId;
NDIS_SWITCH_NIC_INDEX NicIndex;
GUID ExtensionId;
NDIS_SWITCH_EXTENSION_FRIENDLYNAME ExtensionFriendlyName;
GUID FeatureClassId;
USHORT SaveDataSize;
USHORT SaveDataOffset;
ULONG SaveDataSizeOverflow;
} NDIS_SWITCH_NIC_SAVE_STATE, *PNDIS_SWITCH_NIC_SAVE_STATE;
Members
Header
The type, revision, and size of the NDIS_SWITCH_NIC_SAVE_STATE structure. This member is formatted as an NDIS_OBJECT_HEADER structure.
The Type member of Header must be set to NDIS_OBJECT_TYPE_DEFAULT. To specify the version of the NDIS_SWITCH_NIC_SAVE_STATE structure, the Revision member of Header must be set to the following value:
NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1
Original version for NDIS 6.30 and later.
Set the Size member to NDIS_SIZEOF_NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1.
Flags
A ULONG value that contains a bitwise OR of flags. This member is reserved for NDIS.
PortId
An NDIS_SWITCH_PORT_ID value that contains the unique identifier of the extensible switch port.
NicIndex
An NDIS_SWITCH_NIC_INDEX value that contains the Nic Index for the network adapter. This value will always be 0. For more information, see Network Adapter Index Values.
ExtensionId
A GUID value that identifies the extensible switch extension.
ExtensionFriendlyName
An NDIS_SWITCH_EXTENSION_FRIENDLYNAME value that specifies the user-friendly description of the extensible switch extension.
FeatureClassId
A GUID value that contains the identifier of the feature class related to the saved data. A feature class identifier is defined by the extension to uniquely identify components of its run-time data.
SaveDataSize
A USHORT value that specified the size, in bytes, of the data that is contained in the SaveData member.
SaveDataOffset
A USHORT value that contains the offset from the start of the structure to the run-time state information being saved or restored.
SaveDataSizeOverflow
Remarks
The NDIS_SWITCH_NIC_SAVE_STATE structure is used in the following OID requests:
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported in NDIS 6.30 and later. |
Header | ntddndis.h (include Ndis.h, Fwpsk.h) |
See also