Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }