How do I disable a system device programatically?
I am looking for way to disable a system device (either USB or internal) in C#.NET given either the PID & VID or the device name. After searching I found Hardware Helper Library for C# on CodeProject. But I need something that will work on XP, Vista & Windows 7 (both x86 and x64 operating systems)... the project I linked only works with XP and Vista x86...even when running the application with administrator privileges. Does anyone know of a solution that would work on all operating systems? Looks like there were two things in drf's version that were giving you trouble. Your x64 problem was