Mercurial > hg > ucis.core
comparison USBLib/Internal/Windows/Win32Kernel.cs @ 58:fd63c453ff65
Improved Windows USB enumeration classes
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 09 Oct 2013 20:54:15 +0200 |
parents | b1efeada517e |
children | e811297f5aa4 |
comparison
equal
deleted
inserted
replaced
57:b1efeada517e | 58:fd63c453ff65 |
---|---|
22 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 22 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
23 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, IntPtr lpInBuffer, int nInBufferSize, out USB_ROOT_HUB_NAME lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); | 23 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, IntPtr lpInBuffer, int nInBufferSize, out USB_ROOT_HUB_NAME lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); |
24 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 24 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
25 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_INFORMATION lpInBuffer, int nInBufferSize, out USB_NODE_INFORMATION lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); | 25 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_INFORMATION lpInBuffer, int nInBufferSize, out USB_NODE_INFORMATION lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); |
26 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 26 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
27 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_DESCRIPTOR_REQUEST lpInBuffer, int nInBufferSize, IntPtr lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); | 27 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_DESCRIPTOR_REQUEST lpInBuffer, int nInBufferSize, Byte[] lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); |
28 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 28 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
29 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_CONNECTION_DRIVERKEY_NAME lpInBuffer, int nInBufferSize, out USB_NODE_CONNECTION_DRIVERKEY_NAME lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); | 29 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_CONNECTION_DRIVERKEY_NAME lpInBuffer, int nInBufferSize, out USB_NODE_CONNECTION_DRIVERKEY_NAME lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); |
30 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 30 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
31 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_CONNECTION_INFORMATION_EX lpInBuffer, int nInBufferSize, out USB_NODE_CONNECTION_INFORMATION_EX lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); | 31 public static extern bool DeviceIoControl(SafeHandle hDevice, int dwIoControlCode, [In] ref USB_NODE_CONNECTION_INFORMATION_EX lpInBuffer, int nInBufferSize, out USB_NODE_CONNECTION_INFORMATION_EX lpOutBuffer, int nOutBufferSize, out int lpBytesReturned, IntPtr lpOverlapped); |
32 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] | 32 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] |