Example #1
0
        // 注册设备回调
        private void button4_Click(object sender, EventArgs e)
        {
            if (m_devStatusCallback != null)
            {
                return;
            }

            this.labelthread = new Thread(new ThreadStart(this.updateLabelTextValue));
            this.labelthread.Start();

            m_devStatusCallback = new DevStatusCallBack(devStatus_Callback);
            IntPtr p = new IntPtr(0);

            _extern_setDevStatusHandler(m_devStatusCallback, p);
        }
Example #2
0
 public static extern DevStatusCallBack _extern_setDevStatusHandler(DevStatusCallBack statusCallback, IntPtr pContext);