// ntddndis.h
typedef struct _NDIS_HYPERVISOR_INFO {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_HYPERVISOR_PARTITION_TYPE PartitionType;
} NDIS_HYPERVISOR_INFO, *PNDIS_HYPERVISOR_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
Important
Starting with Windows 10 Version 1703, NDIS_HYPERVISOR_INFO is deprecated and should not be used. Drivers are encouraged to move away from it, as it may not be available in future versions of the operating system.
Drivers should instead follow a hypervisor's instructions to query hypervisor presence and capabilities. For example, Hyper-V's instructions are documented in the Top-Level Functional Specification.
The NDIS_HYPERVISOR_INFO structure contains information about the hypervisor that is present on the system.
HeaderThe type, revision, and size of the NDIS_HYPERVISOR_INFO structure. This member is formatted as an NDIS_OBJECT_HEADER structure.
The miniport driver must set the Type member of Header to NDIS_OBJECT_TYPE_DEFAULT. To specify the version of the NDIS_HYPERVISOR_INFO structure, the driver must set the Revision member of Header to the following value:
Original version for NDIS 6.20.
Set the Size member to NDIS_SIZEOF_HYPERVISOR_INFO_REVISION_1.
FlagsA ULONG value that contains a bitwise OR of the following flag.
Specifies that a hypervisor is present on the system.
PartitionTypeAn NDIS_HYPERVISOR_PARTITION_TYPE enumeration value that specifies the partition type that is running on the hypervisor.
The NDIS_HYPERVISOR_INFO structure specifies the hypervisor information that is returned by the NdisGetHypervisorInfo function.
NDIS drivers pass this structure to the NdisGetHypervisorInfo function.
NDIS_HYPERVISOR_PARTITION_TYPE
NdisGetHypervisorInfo Function