Abrufen von Gerätesetupinformationen

Um Setupinformationen aus der Registrierung abzurufen, kann ein Adaptertreiber die PcGetDeviceProperty-Funktion aufrufen, und ein Miniporttreiber kann die IPort::GetDeviceProperty-Methode des Porttreibers aufrufen.

Für einen dieser Aufrufe wählt der Aufrufer den Typ der anzufordernden Setupinformationen aus, indem er den Device-property-Parameter auf einen der folgenden DEVICE_REGISTRY_PROPERTY Enumerationswerte aus der Headerdatei Wdm.h festlegt:

  • DevicePropertyAddress

  • DevicePropertyBootConfiguration

  • DevicePropertyBootConfigurationTranslated

  • DevicePropertyBusNumber

  • DevicePropertyBusTypeGuid

  • DevicePropertyClassGuid

  • DevicePropertyClassName

  • DevicePropertyCompatibleIDs

  • DevicePropertyDetachability

  • DevicePropertyDeviceDescription

  • DevicePropertyDriverKeyName

  • DevicePropertyEnumeratorName

  • DevicePropertyFriendlyName

  • DevicePropertyHardwareID

  • DevicePropertyInstallState

  • DevicePropertyLegacyBusType

  • DevicePropertyLocationInformation

  • DevicePropertyManufacturer

  • DevicePropertyPhysicalDeviceObjectName

  • DevicePropertyUINumber

Eine Beschreibung der obigen DevicePropertyXxx-Werte finden Sie unter IoGetDeviceProperty.