DEVPKEY_DeviceClass_DefaultService

DEVPKEY_DeviceClass_DefaultService设备属性表示 设备安装类的默认服务的名称。

Attribute

属性键

DEVPKEY_DeviceClass_DefaultService

Property-data-type identifier

DEVPROP_TYPE_STRING

安装应用程序和安装程序的只读访问权限

相应的注册表值名称

默认服务

本地化?

备注

如果为设备安装类安装了默认服务,并且设备未安装特定于设备的服务,则安装类的 INF 文件的 INF ClassInstall32.Services 部分 将安装设备的类默认服务。

DEVPKEY_DeviceClass_DefaultService 的值是类注册表项下 的默认服务 注册表值的值。

可以调用 CM_Get_Class_PropertySetupDiGetClassProperty 来检索 DEVPKEY_DeviceClass_DefaultService 的值。

Windows Server 2003、Windows XP 和 Windows 2000 支持此属性,但不支持DEVPKEY_DeviceClass_DefaultService属性键。 可以通过访问类注册表项下的相应 默认服务 注册表值来访问此属性的值。 有关如何访问类注册表项下的值条目的信息,请参阅 访问类注册表项下的注册表项值

要求

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

另请参阅

INF ClassInstall32.Services 节

SetupDiGetClassProperty