   How can I disable / enable hardware in the Device Manager?
  How can I disable / enable hardware in the Device Manager? 
  via a self-written program ??   DJSnow---this post is manually created and therefore legally valid without a signature ;  Why don''t you try to press the right mouse button on the hardware you want to disable, then click on "Disable", and then try to explain what does that has to do with game programming? ;  I just want to know if there is any API to doing this.I don''t know any other programming forums..It''s cuz I want to make a program disable  then enable a hardware when windows is started. (There is a bug on that hardware, have to do this to use it,else, fatal error occur.) lol ;  Why don''t you fix the problem that is causing the hardware to have errors instead of trying to create some hacked up program to disable it.  The most common cause of problems is out of date drivers.  Have you tried contacting the manufacturer about the problem? ;  I wholeheartedly agree with AP here. Hardware configuration access requires kernel-level driver software, AFAIK, and this method should never be necessary on normal software, on any protected-mode platform (including Win32, of course).Try to find an upgraded driver to the hardware causing the problems, or if this is not feasible, drop support for it. Plain and simple.kind rgds,-Nik ;  @vbuser:and, i forgot....regretfully, with VB this would be absolutely sure not possible :D   DJSnow---this post is manually created and therefore legally valid without a signature   [edited by - DJSnow on December 19, 2003 4:10:31 AM]