Disabling a device
Checking around MSN I didn't come accross how to send a message to the OS to disable a device, only how to process messages sent from the OS.
Trying to figure out how to tell the OS to disable the device (ie Drives, ports, etc) ala Device Manager.
And no I'm not going to use this for some evil deed. Just for personal use.
I think your best bet is this:
Other than that you can use the DDK functions:
Obviously, this is highly dependent on OS version.
disable device programmatically