DEVPKEY_DeviceInterface_ClassGuid

DEVPKEY_DeviceInterface_ClassGuid设备属性表示标识设备接口类的 GUID。

Attribute

属性键

DEVPKEY_DeviceInterface_ClassGuid

Property-data-type identifier

DEVPROP_TYPE_GUID

安装应用程序和安装程序为只读

本地化?

备注

{device-interface-class} 键值的格式为“{nnnnnn-nnnn nnnn-nnnn-nnnn-nnnnnnnn}”,其中每个 n 是一个十六进制数字。

可以调用 CM_Get_Device_Interface_PropertySetupDiGetDeviceInterfaceProperty 来检索 DEVPKEY_DeviceInterface_ClassGuid 的值。

Windows Server 2003、Windows XP 和 Windows 2000 支持此属性,但不支持DEVPKEY_DeviceInterface_ClassGuid属性键。 有关如何在这些早期版本的 Windows 上检索设备接口的类 GUID 的信息,请参阅访问设备接口属性中提供的有关如何使用 SetupDiEnumDeviceInterfaces 的信息。

有关如何安装和访问设备接口的信息,请参阅 设备接口类INF AddInterface 指令

要求

版本:Windows Vista 和更高版本的 Windows 标头:Devpkey.h (包括 Devpkey.h)

另请参阅

INF AddInterface 指令

SetupDiEnumDeviceInterfaces

SetupDiGetDeviceInterfaceProperty