How to disable/enable USB port with C#

onggie80

Member
Joined
Jan 26, 2004
Messages
8
Hi..

I need to be able to disable the computers USB port when my C# application exits and enable it when my application is started.

Does anyone noe how i can do that?

Thanks
onggie80:)
 
You could probably use WMI to do it, but thats not beginner stuff... thats the only way I know how. To find out about WMI, go to MSDN and look for WMI, also look for it under the System.Management namespace
 
Back
Top