Esempio n. 1
0
        public void DisConnected()
        {
            IntPtr arg_06_0 = this.dev;

            VGuangScannerAPI.VbarDisconnectDevice(this.dev);
            this.dev = IntPtr.Zero;
        }
Esempio n. 2
0
        public bool GetResultStr(out byte[] result_buffer, out int result_size)
        {
            byte[] array    = new byte[256];
            int    num      = 0;
            int    num2     = 0;
            IntPtr arg_15_0 = this.dev;

            if (VGuangScannerAPI.VbarGetResultStr(this.dev, array, ref num, ref num2) == 0)
            {
                result_buffer = array;
                result_size   = num;
                return(true);
            }


            //System.Diagnostics.Debug.WriteLine(VGuangScannerAPI.VbarGetResultStr(this.dev, array, ref num, ref num2));
            //System.Diagnostics.Debug.WriteLine(array);
            //System.Diagnostics.Debug.WriteLine(num);
            //System.Diagnostics.Debug.WriteLine(num2);

            result_buffer = null;
            result_size   = 0;
            return(false);
        }
Esempio n. 3
0
        public void BeepControl(byte times)
        {
            IntPtr arg_06_0 = this.dev;

            VGuangScannerAPI.VbarBeepControl(this.dev, times);
        }
Esempio n. 4
0
        public bool AddCodeFormat(byte codeFormat)
        {
            IntPtr arg_06_0 = this.dev;

            return(VGuangScannerAPI.VbarAddCodeFormat(this.dev, codeFormat) == 0);
        }
Esempio n. 5
0
        public void Interval(int time)
        {
            IntPtr arg_06_0 = this.dev;

            VGuangScannerAPI.VbarInterval(this.dev, time);
        }
Esempio n. 6
0
        public void Backlight(bool bswitch)
        {
            IntPtr arg_06_0 = this.dev;

            VGuangScannerAPI.VbarBacklight(this.dev, bswitch);
        }
Esempio n. 7
0
 public bool OpenDevice(int devnum)
 {
     this.dev = VGuangScannerAPI.VbarConnectDevice((long)devnum);
     return(!(this.dev == IntPtr.Zero));
 }