NDIS_SWITCH_PORT_PROPERTY_PROFILE structure (ntddndis.h)
The NDIS_SWITCH_PORT_PROPERTY_PROFILE structure specifies a policy property for a Hyper-V extensible switch port that the extensible switch extension saves in its own policy store instead of in the Hyper-V policy store. In this case, policy definitions are identified by property profiles within the driver's policy store.
Syntax
typedef struct _NDIS_SWITCH_PORT_PROPERTY_PROFILE {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_SWITCH_PORT_PROPERTY_PROFILE_NAME ProfileName;
GUID ProfileId;
NDIS_VENDOR_NAME VendorName;
GUID VendorId;
UINT32 ProfileData;
GUID NetCfgInstanceId;
struct {
UINT32 PciSegmentNumber : 16;
UINT32 PciBusNumber : 8;
UINT32 PciDeviceNumber : 5;
UINT32 PciFunctionNumber : 3;
} PciLocation;
UINT32 CdnLabelId;
NDIS_SWITCH_PORT_PROPERTY_PROFILE_CDN_LABEL CdnLabel;
} NDIS_SWITCH_PORT_PROPERTY_PROFILE, *PNDIS_SWITCH_PORT_PROPERTY_PROFILE;
Members
Header
The type, revision, and size of the NDIS_SWITCH_PORT_PROPERTY_PROFILE 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_PROFILE structure, the Revision member of Header must be set to the following value:
NDIS_SWITCH_PORT_PROPERTY_PROFILE_REVISION_1
Original version for NDIS 6.30 and later.
Set the Size member to NDIS_SIZEOF_NDIS_SWITCH_PROPERTY_PROFILE_REVISION_1.
Flags
A ULONG value that contains a bitwise OR of flags. This member is reserved for NDIS.
ProfileName
An NDIS_SWITCH_PORT_PROPERTY_PROFILE_NAME value that specifies the user-friendly name of the profile property.
ProfileId
A GUID value that uniquely identifies the profile property.
VendorName
An NDIS_VENDOR_NAME value that specifies the user-friendly name of the vendor that defined the port profile.
VendorId
A GUID value that identifies the vendor that defined the port profile.
ProfileData
NetCfgInstanceId
A GUID value that specifies the NetCfgInstanceId registry value of the underlying network adapter connection for which the property is applied.
The NetCfgInstanceId value is specified for the network adapter connection through an object identifier (OID) set request of OID_SWITCH_NIC_CREATE.
PciLocation
A structure that specifies the PCI location of the underlying physical network adapter that is specified by the NetCfgInstanceId member.
For more information, see the Remarks section.
PciLocation.PciSegmentNumber
A value that specifies the group of PCI buses on which the physical network adapter is attached.
PciLocation.PciBusNumber
A value that specifies the current PCI bus number on which the physical network adapter is attached.
PciLocation.PciDeviceNumber
A value that specifies the device number for the physical network adapter on the PCI bus.
PciLocation.PciFunctionNumber
A value that specifies the function number of a logical device on the physical network adapter.
CdnLabelId
A UINT32 value that specifies a unique identifier for the data that is contained in the CdnLabel member.
CdnLabel
An NDIS_SWITCH_PORT_PROPERTY_PROFILE_CDN_LABEL value that specifies the PCI Express (PCIe) CDN label for the location of the physical network adapter. A CDN label provides consistent device locations across similar hardware locations.
Remarks
The NDIS_SWITCH_PORT_PROPERTY_PROFILE structure is used by the extension to reference a policy property within a private policy store instead of the Hyper-V policy store. This allows the independent software vendor (ISV) to populate and manage this private policy store through private channels and interfaces. Vendors can distinguish their profiles from other vendors' profiles using the VendorName and VendorId fields.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported in NDIS 6.30 and later. |
Header | ntddndis.h (include Ndis.h) |
See also