NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure

The NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure specifies the parameters for the custom status information of a Hyper-V extensible switch. This information is known as feature status information. The format of this information is defined by the independent software vendor (ISV).

The status information is specified through an NDIS_SWITCH_FEATURE_STATUS_CUSTOM structure that is returned through an object identifier (OID) method request of OID_SWITCH_FEATURE_STATUS_QUERY.

Syntax


typedef struct _NDIS_SWITCH_FEATURE_STATUS_PARAMETERS {
  NDIS_OBJECT_HEADER                       Header;
  ULONG                                    Flags;
  NDIS_SWITCH_FEATURE_STATUS_TYPE          FeatureStatusType;
  NDIS_SWITCH_OBJECT_ID                    FeatureStatusId;
  NDIS_SWITCH_OBJECT_INSTANCE_ID           FeatureStatusInstanceId;
  NDIS_SWITCH_OBJECT_VERSION               FeatureStatusVersion;
  NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION SerializationVersion;
  ULONG                                    FeatureStatusBufferOffset;
  ULONG                                    FeatureStatusBufferLength;
} NDIS_SWITCH_FEATURE_STATUS_PARAMETERS, *PNDIS_SWITCH_FEATURE_STATUS_PARAMETERS;

Members

Header

The type, revision, and size of the NDIS_SWITCH_FEATURE_STATUS_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_FEATURE_STATUS_PARAMETERS structure, the Revision member of Header must be set to the following value:

NDIS_SWITCH_FEATURE_STATUS_PARAMETERS_REVISION_1

Original version for NDIS 6.30 and later.

Set the Size member to NDIS_SIZEOF_NDIS_SWITCH_FEATURE_STATUS_PARAMETERS_REVISION_1.

Flags

A ULONG value that contains a bitwise OR of flags. This member is reserved for NDIS.

FeatureStatusType

An NDIS_SWITCH_FEATURE_STATUS_TYPE enumeration value that specifies the type of the feature status information for the extensible switch.

Note  Starting with NDIS 6.30, this member must be set to NdisSwitchFeatureStatusTypeCustom.

FeatureStatusId

A GUID value that identifies the feature status information for the extensible switch. This value is defined in the managed object format (MOF) class definition for the feature status information. For more information, see Custom Switch Property Definition and Registration.

FeatureStatusInstanceId

An NDIS_SWITCH_OBJECT_INSTANCE_ID value that identifies the instance of the feature status information for the extensible switch.

FeatureStatusVersion

An NDIS_SWITCH_OBJECT_VERSION value that identifies the version of the feature status information for the extensible switch. This value is defined in the MOF class definition for the feature status information.

SerializationVersion

An NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION value that identifies the format version of the serialized status information for the feature status information. This data is serialized for access by the extension from the MOF file that defined the property.

Note  For Windows Server 2012, the SerializationVersion member must be set to NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION_1.

FeatureStatusBufferOffset

A ULONG value that specifies the offset, in bytes, to the feature status buffer that follows the NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure. The status buffer contains an NDIS_SWITCH_FEATURE_STATUS_CUSTOM structure.

The offset is measured from the start of the NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure up to the beginning of the NDIS_SWITCH_FEATURE_STATUS_CUSTOM structure.

FeatureStatusBufferLength

A ULONG value that specifies the size, in bytes, of the feature status buffer.

Remarks

The NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure is used in OID method requests of OID_SWITCH_FEATURE_STATUS_QUERY. This OID request returns the following structures in the information buffer that is associated with the OID request:

  • An NDIS_SWITCH_FEATURE_STATUS_PARAMETERS structure that specifies the status parameters for the feature status information of the extensible switch. The switch extension populates the FeatureStatusVersion member of the structure to reflect the version of the custom status being returned in the NDIS_SWITCH_FEATURE_STATUS_CUSTOM buffer. The Hyper-v Extensible switch populates all other members when issuing the query OID.

  • An NDIS_SWITCH_FEATURE_STATUS_CUSTOM structure that contains the feature status information for the extensible switch. The switch extension populates the FeatureStatusCustomBufferLength member of the structure to reflect the size of the custom status being returned. The Hyper-v Extensible switch populates all other members when issuing the query OID.

Requirements

Version

Supported in NDIS 6.30 and later.

Header

Ndis.h (include Ndis.h)

See also

NDIS_OBJECT_HEADER
NDIS_SWITCH_FEATURE_STATUS_CUSTOM
NDIS_SWITCH_FEATURE_STATUS_TYPE
OID_SWITCH_FEATURE_STATUS_QUERY

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.