Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Device Manager state

Reply
Thread Tools Display Modes

Device Manager state

 
 
Kid
Guest
Posts: n/a

 
      09-28-2010
Hi

Is there some API to check and enumerate "!" "?" "X" device state in
device manager ? What do these states mean and where can I query the error
codes ?

Thank you .
 
Reply With Quote
 
 
 
 
PavelA
Guest
Posts: n/a

 
      09-28-2010
On 28-Sep-2010 09:49, Kid wrote:
> Hi
>
> Is there some API to check and enumerate "!" "?" "X" device state in
> device manager ? What do these states mean and where can I query the error
> codes ?
>


This can be received from SetupDiGetDeviceProperty,
The properties are DEVPKEY_Device_DevNodeStatus, DEVPKEY_Device_ProblemCode

For XP - call CM_Get_DevNode_Status. The device instance can be obtained
from SetupDiEnumDeviceInfo, in SP_DEVINFO_DATA.DevInst.

The problem codes are CM_PROB... defined in cfg.h
For example, the notorious error 10 is CM_PROB_FAILED_START,
error 12 (no resources) is CM_PROB_NORMAL_CONFLICT, 22 is CM_PROB_DISABLED.

Hope this helps.
-- pa
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WMDC not syncing Ben ActiveSync 19 04-25-2008 03:43 PM
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM
Trouble with driver on Windows Vista Beta 2 sujatha Windows Vista Installation 0 06-08-2006 06:44 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59