// ntddndis.h
typedef struct _NDIS_SWITCH_PROPERTY_PARAMETERS {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_SWITCH_PROPERTY_TYPE PropertyType;
NDIS_SWITCH_OBJECT_ID PropertyId;
NDIS_SWITCH_OBJECT_VERSION PropertyVersion;
NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION SerializationVersion;
NDIS_SWITCH_OBJECT_INSTANCE_ID PropertyInstanceId;
ULONG PropertyBufferLength;
ULONG PropertyBufferOffset;
} NDIS_SWITCH_PROPERTY_PARAMETERS, *PNDIS_SWITCH_PROPERTY_PARAMETERS;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_SWITCH_PROPERTY_PARAMETERS structure specifies the parameters for a policy property of a Hyper-V extensible switch.
HeaderThe type, revision, and size of the NDIS_SWITCH_PROPERTY_PARAMETERS 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_PROPERTY_PARAMETERS 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_PROPERTY_PARAMETERS_REVISION_1.
FlagsA ULONG value that contains a bitwise OR of flags. This member is reserved for NDIS.
PropertyTypeAn NDIS_SWITCH_PROPERTY_TYPE enumeration value that specifies the type of extensible switch property that is contained within the property buffer.
PropertyIdA GUID value that identifies the extensible switch property.
For more information, see the Remarks section.
Note The extensible switch extension must ignore this member unless the PropertyType member is set to NdisSwitchPropertyTypeCustom.
PropertyVersionAn NDIS_SWITCH_OBJECT_VERSION value that identifies the version of the extensible switch property.
SerializationVersionAn NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION value that identifies the format version of the serialized extensible switch property data. This data is serialized for access by the extension from the Managed Object Format (MOF) file that defined the property.
Note For Windows Server 2012, the SerializationVersion member must be set to NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION_1.
PropertyInstanceIdAn NDIS_SWITCH_OBJECT_INSTANCE_ID value that specifies the instance identifier of the extensible switch property.
PropertyBufferLengthA ULONG value that specifies the size, in bytes, of the property buffer.
PropertyBufferOffsetA ULONG value that specifies the offset, in bytes, to the property buffer that follows the NDIS_SWITCH_PROPERTY_PARAMETERS structure. The offset is measured from the start of the NDIS_SWITCH_PROPERTY_PARAMETERS structure up to the beginning of the property buffer.
The NDIS_SWITCH_PROPERTY_PARAMETERS structure is used in the following OID set requests:
The property buffer contains a structure that is associated with the PropertyType member. The property buffer follows the NDIS_SWITCH_PROPERTY_PARAMETERS structure in the information buffer that is associated with these OID set requests. The InformationBuffer member of the NDIS_OID_REQUEST structure contains a pointer to this information buffer.
Note Starting with Windows Server 2012, the PropertyType member must be set to NdisSwitchPropertyTypeCustom and the property buffer must contain an NDIS_SWITCH_PROPERTY_CUSTOM structure.
Extensible switch extensions can access the extensible switch property buffer inside an NDIS_SWITCH_PROPERTY_PARAMETERS structure by using the NDIS_SWITCH_PROPERTY_PARAMETERS_GET_PROPERTY macro.
For more information about extensible switch policies, see Hyper-V Extensible Switch Policies.
NDIS_SWITCH_PROPERTY_PARAMETERS_GET_PROPERTY