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 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.