Beispiel #1
0
        public void KeyBoardMsg(uint dwValue, uint dwState)
        {
            IntPtr lPlayHandle = m_videoform[m_nCurIndex].Handle;

            unsafe
            {
                if (lPlayHandle.ToPointer() == null)
                {
                    return;
                }
            }

            SDK_NetKeyBoardData vKeyBoardData;

            vKeyBoardData.iValue = (int)dwValue;
            vKeyBoardData.iState = (int)dwState;
            m_nCurIndex          = m_nCurIndex < 0 ? 0 : m_nCurIndex;
            if (!XMSDK.H264_DVR_ClickKey(m_videoform[m_nCurIndex].m_lLogin, ref vKeyBoardData))
            {
                MessageBox.Show("AccountMSG.Failed");
            }
        }