Searched refs:usb_device_handle (Results 1 – 4 of 4) sorted by relevance
40 HANDLE usb_device_handle = CreateFile(interface_name().c_str(), in CreateHandle() local47 if (INVALID_HANDLE_VALUE == usb_device_handle) { in CreateHandle()54 if (!CacheUsbDeviceDescriptor(usb_device_handle) || in CreateHandle()55 !CacheUsbConfigurationDescriptor(usb_device_handle) || in CreateHandle()56 !CacheUsbInterfaceDescriptor(usb_device_handle)) { in CreateHandle()63 ::CloseHandle(usb_device_handle); in CreateHandle()112 HANDLE usb_device_handle = CreateFile(interface_name().c_str(), in GetSerialNumber() local119 if (INVALID_HANDLE_VALUE == usb_device_handle) { in GetSerialNumber()127 BOOL ret = DeviceIoControl(usb_device_handle, in GetSerialNumber()137 ::CloseHandle(usb_device_handle); in GetSerialNumber()[all …]
154 bool CacheUsbDeviceDescriptor(HANDLE usb_device_handle);164 bool CacheUsbConfigurationDescriptor(HANDLE usb_device_handle);174 bool CacheUsbInterfaceDescriptor(HANDLE usb_device_handle);
249 HANDLE usb_device_handle = CreateFile(interface_name, in IsLegacyInterface() local256 if (INVALID_HANDLE_VALUE == usb_device_handle) in IsLegacyInterface()263 BOOL ret = DeviceIoControl(usb_device_handle, in IsLegacyInterface()270 ::CloseHandle(usb_device_handle); in IsLegacyInterface()
166 HANDLE usb_device_handle() const { in usb_device_handle() function