// ntddndis.h
typedef struct _NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_SWITCH_OBJECT_VERSION PropertyVersion;
NDIS_SWITCH_OBJECT_INSTANCE_ID PropertyInstanceId;
ULONG QwordAlignedPropertyBufferLength;
ULONG PropertyBufferLength;
ULONG PropertyBufferOffset;
} NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO, *PNDIS_SWITCH_PORT_PROPERTY_ENUM_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structure contains information about a Hyper-V extensible switch port policy property.
HeaderThe type, revision, and size of the NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO 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_PORT_PROPERTY_ENUM_INFO structure, the Revision member of Header must be set to the following value:
Original version for NDIS 6.30 and later.
Set the Size member to NDIS_SIZEOF_NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS_REVISION_1.
FlagsA ULONG value that contains a bitwise OR of flags. This member is reserved for NDIS.
PropertyVersionAn NDIS_SWITCH_OBJECT_VERSION value that identifies the version of the property for the extensible switch port.
PropertyInstanceIdAn NDIS_SWITCH_OBJECT_INSTANCE_ID value that specifies the instance identifier for the extensible switch port property.
QwordAlignedPropertyBufferLengthA ULONG value that specifies the aligned size, in bytes, of the property buffer.
PropertyBufferLengthA ULONG value that specifies the actual size, in bytes, of the property buffer.
Note This value must be less than or equal to the value of the QwordAlignedPropertyBufferLength member.
PropertyBufferOffsetA ULONG value that specifies the offset, in bytes, to the property buffer that follows the NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structure. The offset is measured from the start of the NDIS_SWITCH_PORT_PROPERTY_PARAMETERS structure up to the beginning of the property buffer.
The NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structure is used in OID method requests of OID_SWITCH_PORT_PROPERTY_ENUM. An array of NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structures follow the NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS structure in the information buffer that is associated with this OID request. The InformationBuffer member of the NDIS_OID_REQUEST structure contains a pointer to this information buffer.
Extensible switch extensions can access the next NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO element that follows an NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structure in the array by using the NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO_GET_NEXT macro.
Extensible switch extensions can access the port property buffer that is specified by an NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO structure by using the NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO_GET_PROPERTY macro.
For more information about extensible switch policies, see Hyper-V Extensible Switch Policies.
NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO_GET_NEXT
NDIS_SWITCH_PORT_PROPERTY_ENUM_INFO_GET_PROPERTY
NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS