Enabling & Disabling Hardware Devices
Hi,
Ever since I have got my new computer, my USB keyboard has failed to start up every now and again when my computer boots. It happens about 1/5th of the time so its enough to start getting me annoyed.
The only way to fix it is to go into device manager, using the mouse, disable the keyboard and re-enable it. This fixes it straight away.
I am just wondering if it is possible, somehow, using Visual Basic that there would be some code to detect if a certain device is in a current state and if so, disable it, wait a few seconds then enable it again.
Can this be done in visual basic? if it can, is it too hard to get help on here?
Thanks very much
Re: Enabling & Disabling Hardware Devices
Microsoft has an app called devcon it can enable/disable and show status of all devices I make a frontend to do things like you want but in my case I disable all usb ports and CDRoms for the other users cant have access
Re: Enabling & Disabling Hardware Devices
Try searching in www.pinvoke.net
and www.allapi.net Hope that helps a bit atleast :rolleyes: