// 注册设备回调 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); }
public static extern DevStatusCallBack _extern_setDevStatusHandler(DevStatusCallBack statusCallback, IntPtr pContext);