Getting the current configuration, Getting the physical adapters, Getting the pci devices – Dell Intel PRO Family of Adapters User Manual
Page 39

Getting the Current Configuration: Intel® PRO Network Adapters
WMI and CDM Providers User Guide
Getting the Team Configuration
Getting the VLAN Configuration
Getting the IP Protocol Information
Getting the Boot Agent Information
Getting the Boot Agent Settings
The client does not need to get a session handle to read the current configuration. Clients can use a NULL context, however,
any error messages will be returned in the default language for the managed machine. In the following table, items enclosed
in { } are object paths. These paths are assumed to have been obtained from previous WQL queries. The client should never
need to construct an object path without doing a query. The __PATH attribute of every object contains the object path for
that object.
In all the following use cases, the methods IWbemServices::ExecQuery or IWbemServices::ExecQueryAsync are used
to execute WQL queries.
Getting the Physical Adapters
Task
WQL Query
Result Class
Comment
Enumerate all
adapters
SELECT * FROM
IANet_EthernetAdapter
IANet_EthernetAdapter
Returns all IANet_EthernetAdapters.
This is equivalent to
IWbemServices::CreateInstanceEnumAsync.
Determine if
adapter is
virtual
ASSOCIATORS OF {adapter
path} WHERE AssocClass =
IANet_NetworkVirtualAdapter
IANet_TeamOfAdapters
If the query results in no classes then the
adapter is a real adapter.
Determine if
adapter is a
phantom
adapter
ASSOCIATORS OF {adapter
path} WHERE ResultClass =
IANet_EthernetPCIDevice
IANet_EthernetPCIDevice If the adapter is not virtual and this query
returns no objects then the adapter is a
phantom adapter.
The main class for the adapters is IANet_EthernetAdapter. This class is used for both physical and virtual adapters, and the
client needs to know how to distinguish between them.
Getting the PCI Devices
The main classes are IANet_EthernetPCIDevice, IANet_PCIDevice, and IANet_AdapterDevice (an association class to associate
an adapter with its device).
In this case, the association class does not contain any data, i.e., it has no value by itself. IANet_EthernetPCIDevice inherits
from IANet_PCIDevice and contains extra attributes that are specific for a PCI device that is an Ethernet adapter.
Task
WQL Query
Result Class
Comment
Enumerate
network PCI
SELECT * FROM
IANet_PCIDevice
IANet_PCIDevice
The query may return modems and other
devices that Intel® PROSet does not
39