public static USBKey GetDevice(int start, string hashFlag) { USBKey usbKey = null; StringBuilder devicePath = new StringBuilder("", 260); if (Win32API.FindPort_2(start, hashFlag, devicePath) == 0) { usbKey = new USBKey(devicePath.ToString()); } return usbKey; }
public static USBKey GetDevice(int start) { USBKey usbKey = null; StringBuilder outDevicePath = new StringBuilder("", 260); if (Win32API.FindPort(start, outDevicePath) == 0) { usbKey = new USBKey(outDevicePath.ToString()); } return usbKey; }
public static USBKey GetDevice(int start, string hashFlag) { USBKey usbKey = null; StringBuilder devicePath = new StringBuilder("", 260); if (Win32API.FindPort_2(start, hashFlag, devicePath) == 0) { usbKey = new USBKey(devicePath.ToString()); } return(usbKey); }
public static USBKey GetDevice(int start) { USBKey usbKey = null; StringBuilder outDevicePath = new StringBuilder("", 260); if (Win32API.FindPort(start, outDevicePath) == 0) { usbKey = new USBKey(outDevicePath.ToString()); } return(usbKey); }