How to make undisableable device to disableable with SetupAPI

When I connect the BT keyboard, the Bluetooth device in my Device Manager becomes “Non Disableable” which means “Disable” option is not in the menu when you click with right mouse button.

So, when I used “devcon” to disable, it returned failed and the error code was “ERROR_NOT_DISABLEABLE”.

Is there any way to change the Bluetooth device back to “Disableable” so I can disable the device with devcon?

SetupDiSetClassInstallParams() returns E0000231 which is “ERROR_NOT_DISABLEABLE”.

Thanks.

All keyboards and disableable, kbdclass.sys marks them. Iirc, there is a key to turn this behavior off but it is for developers to use on their own systems, not for end users

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?8/?9/?2013 5:15 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] How to make undisableable device to disableable with SetupAPI

When I connect the BT keyboard, the Bluetooth device in my Device Manager becomes “Non Disableable” which means “Disable” option is not in the menu when you click with right mouse button.

So, when I used “devcon” to disable, it returned failed and the error code was “ERROR_NOT_DISABLEABLE”.

Is there any way to change the Bluetooth device back to “Disableable” so I can disable the device with devcon?

SetupDiSetClassInstallParams() returns E0000231 which is “ERROR_NOT_DISABLEABLE”.

Thanks.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Hi Bent,

Thanks for quick reply.
Could you give me a detail about this key?

Is there anyway to change the driver state to “Disableable” with SetupAPI?

Tedd

My name is not Bent :). You can’t change this with setupapi calls.

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?8/?9/?2013 5:37 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] How to make undisableable device to disableable with SetupAPI

Hi Bent,

Thanks for quick reply.
Could you give me a detail about this key?

Is there anyway to change the driver state to “Disableable” with SetupAPI?

Tedd


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>