private void button24_Click(object sender, EventArgs e) { button25_Click(null, null); HikSDK_iVMS7200.ST_ACCESS_SERVER_INFO stPassbyServer = new HikSDK_iVMS7200.ST_ACCESS_SERVER_INFO(); //Information of Register server stPassbyServer.szAcessServerIP = textBox2.Text; stPassbyServer.nAcessServerPort = Convert.ToUInt16(textBox3.Text); stPassbyServer.szUserName = "******"; stPassbyServer.szUserPwd = "12345"; pNotifyCallBack_ = pfnNotifyCallBack; m_iNofifyID = HikSDK_iVMS7200.PPVNotifySubscribe(stPassbyServer, pNotifyCallBack_, (IntPtr)0); if (m_iNofifyID < 0) { MessageBox.Show("NotifySubscribe Failed!"); } }
public static extern int PPVNotifySubscribe(ST_ACCESS_SERVER_INFO stPassbyServer, pNotifyCallBack pfnNotifyCallBack, IntPtr nUserDataForCallBack);