Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking for way to find and enable/disable system device.I am referring these link http://code.msdn.microsoft.com/windowshardware/DevCon-Sample-4e95d71c#content[^].I am able to run devcon command on console but I want to run programatically in c#.

I am refer these link http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device[^] . when I ran these code posted by justin, In SetDeviceEnabled function . I got -1 value in index variable.I changed mouseGuid & instancePath according my system configuration. I am using visual studio 2013 RC. can you help me in this regard.
Posted
Updated 3-Oct-13 1:18am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900