title: How do I disable a system device programmatically?
body: <p>I am looking for way to disable a system device (either USB or internal) in C#.NET given either the PID &amp; VID or the device name.</p>
  
  <p>After searching I found <a href="http://www.codeproject.com/KB/cs/HardwareHelper.aspx" rel="noreferrer">Hardware Helper Library for C#</a> on CodeProject.</p>
  
  <p>But I need something that will work on XP, Vista &amp; Windows 7 (both x86 and x64 operating systems)...<strong>the project I linked only works with XP and Vista x86...even when running the application with administrator privileges.</strong></p>
  
  <p>Does anyone know of a solution that would work on all operating systems?</p>