Programmatically enabling/disabling hardware device

Icemanind picture Icemanind · Aug 17, 2010 · Viewed 25.8k times · Source

Possible Duplicates:
[.NET] How do I disable a system device?
Win32 API function to programatically enable/disable device

Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and disable or enable it. How can I do this in C#?

Answer

Will A picture Will A · Aug 17, 2010