protected override void OnStart(string[] args)
 {
     _gpsCB = new GPSInfoCallback(OnGPSInfo);
     _nmsCB = new NmsMsgCallback(OnCamStatInfo);
     NativeMethods.Init();
     MSGSDKhandle(false);
     de.GetDeviceFormWebservice(); //获取及更新设备资源
     // _gpsprase.UpdateStatus();//通过GPS时间更新监控在线状态
     //半小时重新注册平台,并更新获取资源
     //ReRegAndUpDevice();
 }
 internal static extern int SetNmsMsgCallback(int handle, NmsMsgCallback cbf, IntPtr userdata);