public static void StopHostNotification(this CloseInterceptItem SessionItem)
        {
            if (SessionItem.HostInterceptIsStarted == false)
            {
                throw new ApplicationException("Host notification is not started");
            }

            Ehllapier.StopHostNotification(SessionItem.SessId);

            SessionItem.HostTaskId             = 0;
            SessionItem.HostInterceptIsStarted = false;
        }
        public SessIdMessage StopNotification()
        {
            SessIdMessage msg = null;

            if (this.NotificationIsStarted == true)
            {
                string errmsg = null;
                try
                {
                    Ehllapier.StopHostNotification(this.SessId);
                }
                catch (ApplicationException Excp)
                {
                    errmsg = Excp.Message;
                }
                if (errmsg == null)
                {
                    msg = new SessIdMessage()
                    {
                        SessId  = this.SessId,
                        Message = "Host notification is stopped."
                    };
                    this.NotificationIsStarted = false;
                }

                else
                {
                    msg = new SessIdMessage()
                    {
                        SessId  = this.SessId,
                        Message = "StopCapture failed. " + errmsg
                    };
                }
            }

            return(msg);
        }