Bewerken

Delen via


DEVPKEY_Device_ProblemCode

The DEVPKEY_Device_ProblemCode device property represents the problem code for a device instance.

Attribute Value

Property key

DEVPKEY_Device_ProblemCode

Property-data-type identifier

DEVPROP_TYPE_INT32

Property access

Read-only access by installation applications and installers

Localized?

No

Remarks

The value of DEVPKEY_Device_ProblemCode is one of the CM_PROB_Xxx problem codes that are defined in Cfg.h.

You can call CM_Get_DevNode_Property or SetupDiGetDeviceProperty to retrieve the value of DEVPKEY_Device_ProblemCode.

Windows Server 2003, Windows XP, and Windows 2000 do not directly support this property. For information about how to access the problem code for a device instance on these earlier versions of Windows, see Retrieving the Status and Problem Code for a Device Instance.

For info on finding problem status in Device Manager or the kernel debugger, see Retrieving the Status and Problem Code for a Device Instance.

For additional information that may help with the problem code, see DEVPKEY_Device_ProblemStatus.

Requirements

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

See also

CM_Get_DevNode_Status

SetupDiGetDeviceProperty

DEVPKEY_Device_ProblemStatus