Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var result = -1U;

            try
            {
                result = HWSignApi.HWInit(new IntPtr(0));

                Thread.Sleep(200);
                result = HWSignApi.GetDeviceStatus();

                DEVICE_INFO dEVICE_INFO = new DEVICE_INFO();
                result = HWSignApi.GetDeviceInfo(ref dEVICE_INFO);

                HWSignApi.RegisterTouchInfoCallBack(TouchInfoCallBack);

                graphics = pictureBox1.CreateGraphics();
                graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            }
            catch (Exception ex)
            {
            }
        }
Пример #2
0
        private int TouchOver(IntPtr ptr)
        {
            var tt = HWSignApi.GetDeviceStatus();

            return(tt);
        }