Enable/disable devices

(imported comment written by SystemAdmin)

I might have found my own info. Looking at the Configuration Manager status on MSDN, via CM_Get_DevNode_Status (

http://msdn.microsoft.com/en-us/library/ff538514(v=vs.85).aspx

)

It references “… any combination of the DN_-prefixed bit flags defined in Cfg.h”.

So, if I’m reading this correctly, my values decode as:

Status = 25174026 (enabled)

DN_NT_DRIVER + DN_NT_ENUMERATOR + DN_DISABLEABLE + DN_STARTED + DN_DRIVER_LOADED

(0x01000000 + 0x00800000 + 0x00002000 + 0x00000008 + 0x00000002)

Status = 25175040 (disabled)

DN_NT_DRIVER + DN_NT_ENUMERATOR + DN_DISABLEABLE + DN_HAS_PROBLEM

(0x01000000 + 0x00800000 + 0x00002000 + 0x00000400)

Man, I seem to give myself the complex problems. :stuck_out_tongue:

Paul