¡@

Home 

c# Programming Glossary: checkerror

How do I disable a system device programatically?

http://stackoverflow.com/questions/4097000/how-do-i-disable-a-system-device-programatically

ref NullGuid null IntPtr.Zero DIGCF_ALLCLASSES CheckError SetupDiGetClassDevs SP_DEVINFO_DATA devdata new SP_DEVINFO_DATA.. throw if Marshal.GetLastWin32Error ERROR_NO_MORE_ITEMS CheckError No device found matching filter. 0xcffff CheckError SetupDiEnumDeviceInfo.. CheckError No device found matching filter. 0xcffff CheckError SetupDiEnumDeviceInfo string devicepath GetStringPropertyForDevice..