31#define CM_PROB_NOT_CONFIGURED 0x00000001
32#define CM_PROB_DEVLOADER_FAILED 0x00000002
33#define CM_PROB_OUT_OF_MEMORY 0x00000003
34#define CM_PROB_ENTRY_IS_WRONG_TYPE 0x00000004
35#define CM_PROB_LACKED_ARBITRATOR 0x00000005
36#define CM_PROB_BOOT_CONFIG_CONFLICT 0x00000006
37#define CM_PROB_FAILED_FILTER 0x00000007
38#define CM_PROB_DEVLOADER_NOT_FOUND 0x00000008
39#define CM_PROB_INVALID_DATA 0x00000009
40#define CM_PROB_FAILED_START 0x0000000A
41#define CM_PROB_LIAR 0x0000000B
42#define CM_PROB_NORMAL_CONFLICT 0x0000000C
43#define CM_PROB_NOT_VERIFIED 0x0000000D
44#define CM_PROB_NEED_RESTART 0x0000000E
45#define CM_PROB_REENUMERATION 0x0000000F
46#define CM_PROB_PARTIAL_LOG_CONF 0x00000010
47#define CM_PROB_UNKNOWN_RESOURCE 0x00000011
48#define CM_PROB_REINSTALL 0x00000012
49#define CM_PROB_REGISTRY 0x00000013
50#define CM_PROB_VXDLDR 0x00000014
51#define CM_PROB_WILL_BE_REMOVED 0x00000015
52#define CM_PROB_DISABLED 0x00000016
53#define CM_PROB_DEVLOADER_NOT_READY 0x00000017
54#define CM_PROB_DEVICE_NOT_THERE 0x00000018
55#define CM_PROB_MOVED 0x00000019
56#define CM_PROB_TOO_EARLY 0x0000001A
57#define CM_PROB_NO_VALID_LOG_CONF 0x0000001B
58#define CM_PROB_FAILED_INSTALL 0x0000001C
59#define CM_PROB_HARDWARE_DISABLED 0x0000001D
60#define CM_PROB_CANT_SHARE_IRQ 0x0000001E
61#define CM_PROB_FAILED_ADD 0x0000001F
62#define CM_PROB_DISABLED_SERVICE 0x00000020
63#define CM_PROB_TRANSLATION_FAILED 0x00000021
64#define CM_PROB_NO_SOFTCONFIG 0x00000022
65#define CM_PROB_BIOS_TABLE 0x00000023
66#define CM_PROB_IRQ_TRANSLATION_FAILED 0x00000024
67#define CM_PROB_FAILED_DRIVER_ENTRY 0x00000025
68#define CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD 0x00000026
69#define CM_PROB_DRIVER_FAILED_LOAD 0x00000027
70#define CM_PROB_DRIVER_SERVICE_KEY_INVALID 0x00000028
71#define CM_PROB_LEGACY_SERVICE_NO_DEVICES 0x00000029
72#define CM_PROB_DUPLICATE_DEVICE 0x0000002A
73#define CM_PROB_FAILED_POST_START 0x0000002B
74#define CM_PROB_HALTED 0x0000002C
75#define CM_PROB_PHANTOM 0x0000002D
76#define CM_PROB_SYSTEM_SHUTDOWN 0x0000002E
77#define CM_PROB_HELD_FOR_EJECT 0x0000002F
78#define CM_PROB_DRIVER_BLOCKED 0x00000030
79#define CM_PROB_REGISTRY_TOO_LARGE 0x00000031
80#define CM_PROB_SETPROPERTIES_FAILED 0x00000032
81#define CM_PROB_WAITING_ON_DEPENDENCY 0x00000033
82#define CM_PROB_UNSIGNED_DRIVER 0x00000034
84#define NUM_CM_PROB_V1 0x00000025
85#define NUM_CM_PROB_V2 0x00000032
86#define NUM_CM_PROB_V3 0x00000033
87#define NUM_CM_PROB_V4 0x00000034
88#define NUM_CM_PROB_V5 0x00000035
90#if (NTDDI_VERSION >= NTDDI_WIN7)
91#define NUM_CM_PROB NUM_CM_PROB_V5
92#elif (NTDDI_VERSION >= NTDDI_WS08)
93#define NUM_CM_PROB NUM_CM_PROB_V4
94#elif (NTDDI_VERSION >= NTDDI_WS03)
95#define NUM_CM_PROB NUM_CM_PROB_V3
96#elif (NTDDI_VERSION >= NTDDI_WINXP)
97#define NUM_CM_PROB NUM_CM_PROB_V2
98#elif (NTDDI_VERSION >= WIN2K)
99#define NUM_CM_PROB NUM_CM_PROB_V1
102#define LCPRI_FORCECONFIG 0x00000000
103#define LCPRI_BOOTCONFIG 0x00000001
104#define LCPRI_DESIRED 0x00002000
105#define LCPRI_NORMAL 0x00003000
106#define LCPRI_LASTBESTCONFIG 0x00003FFF
107#define LCPRI_SUBOPTIMAL 0x00005000
108#define LCPRI_LASTSOFTCONFIG 0x00007FFF
109#define LCPRI_RESTART 0x00008000
110#define LCPRI_REBOOT 0x00009000
111#define LCPRI_POWEROFF 0x0000A000
112#define LCPRI_HARDRECONFIG 0x0000C000
113#define LCPRI_HARDWIRED 0x0000E000
114#define LCPRI_IMPOSSIBLE 0x0000F000
115#define LCPRI_DISABLED 0x0000FFFF
116#define MAX_LCPRI 0x0000FFFF
118#define DN_ROOT_ENUMERATED 0x00000001
119#define DN_DRIVER_LOADED 0x00000002
120#define DN_ENUM_LOADED 0x00000004
121#define DN_STARTED 0x00000008
122#define DN_MANUAL 0x00000010
123#define DN_NEED_TO_ENUM 0x00000020
124#define DN_NOT_FIRST_TIME 0x00000040
125#define DN_HARDWARE_ENUM 0x00000080
126#define DN_LIAR 0x00000100
127#define DN_HAS_MARK 0x00000200
128#define DN_HAS_PROBLEM 0x00000400
129#define DN_FILTERED 0x00000800
130#define DN_MOVED 0x00001000
131#define DN_DISABLEABLE 0x00002000
132#define DN_REMOVABLE 0x00004000
133#define DN_PRIVATE_PROBLEM 0x00008000
134#define DN_MF_PARENT 0x00010000
135#define DN_MF_CHILD 0x00020000
136#define DN_WILL_BE_REMOVED 0x00040000
137#define DN_NOT_FIRST_TIMEE 0x00080000
138#define DN_STOP_FREE_RES 0x00100000
139#define DN_REBAL_CANDIDATE 0x00200000
140#define DN_BAD_PARTIAL 0x00400000
141#define DN_NT_ENUMERATOR 0x00800000
142#define DN_NT_DRIVER 0x01000000
143#define DN_NEEDS_LOCKING 0x02000000
144#define DN_ARM_WAKEUP 0x04000000
145#define DN_APM_ENUMERATOR 0x08000000
146#define DN_APM_DRIVER 0x10000000
147#define DN_SILENT_INSTALL 0x20000000
148#define DN_NO_SHOW_IN_DM 0x40000000
149#define DN_BOOT_LOG_PROB 0x80000000
151#if (NTDDI_VERSION >= NTDDI_WINXP)
153#define DN_NEED_RESTART DN_LIAR
154#define DN_DRIVER_BLOCKED DN_NOT_FIRST_TIME
155#define DN_LEGACY_DRIVER DN_MOVED
156#define DN_CHILD_WITH_INVALID_ID DN_HAS_MARK
158#elif (NTDDI_VERSION >= NTDDI_WIN2K)
160#define DN_NEED_RESTART 0x00000100
164#define DN_CHANGEABLE_FLAGS (DN_NOT_FIRST_TIME + \
171 DN_NOT_FIRST_TIMEE + \
173 DN_REBAL_CANDIDATE + \
176 DN_SILENT_INSTALL + \
@ PNP_VetoOutstandingOpen
@ PNP_VetoInsufficientPower
@ PNP_VetoIllegalDeviceRequest
@ PNP_VetoInsufficientRights
enum _PNP_VETO_TYPE PNP_VETO_TYPE
enum _PNP_VETO_TYPE * PPNP_VETO_TYPE