public void DisConnected() { IntPtr arg_06_0 = this.dev; VGuangScannerAPI.VbarDisconnectDevice(this.dev); this.dev = IntPtr.Zero; }
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); }
public void BeepControl(byte times) { IntPtr arg_06_0 = this.dev; VGuangScannerAPI.VbarBeepControl(this.dev, times); }
public bool AddCodeFormat(byte codeFormat) { IntPtr arg_06_0 = this.dev; return(VGuangScannerAPI.VbarAddCodeFormat(this.dev, codeFormat) == 0); }
public void Interval(int time) { IntPtr arg_06_0 = this.dev; VGuangScannerAPI.VbarInterval(this.dev, time); }
public void Backlight(bool bswitch) { IntPtr arg_06_0 = this.dev; VGuangScannerAPI.VbarBacklight(this.dev, bswitch); }
public bool OpenDevice(int devnum) { this.dev = VGuangScannerAPI.VbarConnectDevice((long)devnum); return(!(this.dev == IntPtr.Zero)); }