Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }