Upravit

DEVPKEY_DeviceClass_NoUseClass

The DEVPKEY_DeviceClass_NoUseClass device property represents a Boolean flag that controls whether the Plug and Play (PnP) manager and SetupAPI use the device setup class.

Attribute Value

Property key

DEVPKEY_DeviceClass_NoUseClass

Property-data-type identifier

DEVPROP_TYPE_BOOLEAN

Property access

Read-only access by installation applications and installers

Corresponding registry value name

NoUseClass

Localized?

No

Remarks

If the value of DEVPKEY_DeviceClass_NoUseClass is set to 1, the PnP manager and SetupAPI do not use the device setup class. Otherwise, they do use the device setup class.

The NoUseClass registry value for a device setup class is set by an INF AddReg directive that is included in the INF ClassInstall32 section of the INF file that installs the class.

You can call CM_Get_Class_Property or SetupDiGetClassProperty to retrieve the value of DEVPKEY_DeviceClass_NoUseClass.

Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_DeviceClass_NoUseClass property key. You can access the value of this property by accessing the corresponding NoUseClass registry value under the class registry key. For information about how to access value entries under the class registry key, see Accessing Registry Entry Values Under the Class Registry Key.

Requirements

Version: Windows Vista and later versions of Windows Header: Devpkey.h (include Devpkey.h)

See also

INF AddReg Directive

INF ClassInstall32 Section

SetupDiGetClassProperty