Mercurial > hg > ucis.core
comparison USBLib/Internal/Windows/SetupApi.cs @ 93:d467cd38b34e
USBLib: fix for large transfers with libusb0 on Windows, added driver uninstall function
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Tue, 22 Apr 2014 16:40:35 +0200 |
parents | 309c705d7460 |
children |
comparison
equal
deleted
inserted
replaced
92:ac0a29c05d03 | 93:d467cd38b34e |
---|---|
91 public static extern CR CM_Enumerate_Classes(UInt32 ulClassIndex, out Guid ClassGuid, UInt32 ulFlags); | 91 public static extern CR CM_Enumerate_Classes(UInt32 ulClassIndex, out Guid ClassGuid, UInt32 ulFlags); |
92 [DllImport("setupapi.dll", CharSet = CharSet.Auto)] | 92 [DllImport("setupapi.dll", CharSet = CharSet.Auto)] |
93 public static extern CR CM_Get_DevNode_Status(out UInt32 pulStatus, out UInt32 pulProblemNumber, UInt32 dnDevInst, UInt32 ulFlags); | 93 public static extern CR CM_Get_DevNode_Status(out UInt32 pulStatus, out UInt32 pulProblemNumber, UInt32 dnDevInst, UInt32 ulFlags); |
94 [DllImport("setupapi.dll", CharSet = CharSet.Auto)] | 94 [DllImport("setupapi.dll", CharSet = CharSet.Auto)] |
95 public static extern CR CM_Reenumerate_DevNode(UInt32 dnDevInst, UInt32 ulFlags); | 95 public static extern CR CM_Reenumerate_DevNode(UInt32 dnDevInst, UInt32 ulFlags); |
96 | |
97 [DllImport("newdev.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
98 public static extern bool DiUninstallDevice(IntPtr hwndParent, SafeDeviceInfoSetHandle DeviceInfoSet, ref SP_DEVINFO_DATA DeviceInfoData, UInt32 Flags, out Boolean NeedReboot); | |
96 | 99 |
97 //public const int DIGCF_DEFAULT = 0x00000001; // only valid with DIGCF_DEVICEINTERFACE | 100 //public const int DIGCF_DEFAULT = 0x00000001; // only valid with DIGCF_DEVICEINTERFACE |
98 public const int DIGCF_PRESENT = 0x00000002; | 101 public const int DIGCF_PRESENT = 0x00000002; |
99 public const int DIGCF_ALLCLASSES = 0x00000004; | 102 public const int DIGCF_ALLCLASSES = 0x00000004; |
100 public const int DIGCF_PROFILE = 0x00000008; | 103 public const int DIGCF_PROFILE = 0x00000008; |