擷取裝置設定資訊

若要從登錄擷取安裝資訊,配接器驅動程式可以呼叫 PcGetDeviceProperty 函式,而迷你埠驅動程式可以呼叫埠驅動程式的 IPort::GetDeviceProperty 方法。

針對上述任一呼叫,呼叫端會從標頭檔 Wdm.h 將 device-property 參數設定為下列其中一個DEVICE_REGISTRY_PROPERTY列舉值,以選取要要求的安裝資訊類型:

  • DevicePropertyAddress

  • DevicePropertyBootConfiguration

  • DevicePropertyBootConfigurationTranslated

  • DevicePropertyBusNumber

  • DevicePropertyBusTypeGuid

  • DevicePropertyClassGuid

  • DevicePropertyClassName

  • DevicePropertyCompatibleIDs

  • DevicePropertyDetachability

  • DevicePropertyDeviceDescription

  • DevicePropertyDriverKeyName

  • DevicePropertyEnumeratorName

  • DevicePropertyFriendlyName

  • DevicePropertyHardwareID

  • DevicePropertyInstallState

  • DevicePropertyLegacyBusType

  • DevicePropertyLocationInformation

  • DevicePropertyManufacturer

  • DevicePropertyPhysicalDeviceObjectName

  • DevicePropertyUINumber

如需上述 DevicePropertyXxx 值的描述,請參閱 IoGetDeviceProperty