private void RegHttpServer(string httpUri)
        {
            try
            {
                objHttpDesktop = new clsHttpDesktop();
                ((clsHttpDesktop)objHttpDesktop).EntsvcJoin += new clsHttpDesktop.delsvcJoin(Http_EntsvcJoin);
                ((clsHttpDesktop)objHttpDesktop).EntsvcGetUserList += new clsHttpDesktop.delsvcGetUserList(Http_EntsvcGetUserList);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSetUserList += new clsHttpDesktop.delsvcSetUserList(Http_EntsvcSetUserList);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendMessage += new clsHttpDesktop.delsvcSendMessage(Http_EntsvcSendMessage);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSelectedDesktop += new clsHttpDesktop.delsvcSelectedDesktop(Http_EntsvcSelectedDesktop);
                ((clsHttpDesktop)objHttpDesktop).EntsvcStopControl += new clsHttpDesktop.delsvcStopControl(Http_EntsvcStopControl);
                ((clsHttpDesktop)objHttpDesktop).EntsvcBtnDown += new clsHttpDesktop.delsvcBtnDown(Http_EntsvcBtnDown);
                ((clsHttpDesktop)objHttpDesktop).EntsvcBtnUp += new clsHttpDesktop.delsvcBtnUp(Http_EntsvcBtnUp);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendXY += new clsHttpDesktop.delsvcSendXY(Http_EntsvcSendXY);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendKey += new clsHttpDesktop.delsvcSendKey(Http_EntsvcSendKey);
                ((clsHttpDesktop)objHttpDesktop).EntsvcGetMessages += new clsHttpDesktop.delsvcGetMessages(Http_EntsvcGetMessages);
                ((clsHttpDesktop)objHttpDesktop).EntsvcAllowView += new clsHttpDesktop.delsvcAllowView(Http_EntsvcAllowView);
                ((clsHttpDesktop)objHttpDesktop).EntsvcAllowControl += new clsHttpDesktop.delsvcAllowControl(Http_EntsvcAllowControl);
                ((clsHttpDesktop)objHttpDesktop).EntsvcUnJoin += new clsHttpDesktop.delsvcUnJoin(Http_EntsvcUnJoin);

                HttpDesktopServer = new BasicHttpServer(ref objHttpDesktop, httpUri.ToString());
                HttpDesktopServer.AddEndPoint<IHttpDesktop>(httpUri.ToString());
                HttpDesktopServer.objBasicHttpBinding.TransferMode = System.ServiceModel.TransferMode.Streamed;
                HttpDesktopServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "DesktopDummy.cs");
            }
        }
        void GlobalVariable()
        {
            try
            {
                objNetTcpDesktop = new clsNetTcpDesktop();
                objHttpDesktop = new clsHttpDesktop();
                hashID_Name = new Hashtable();

                DoWork = true;

                objGetUserList = new DelGetUserList(objDelGetUserList);
                objDelSendMsg = new DelSendMessage(delSendMessage);
                objRemoveUser = new DelRemoveUser(delRemoveUser);
                objDelGetMsg = new DelGetMessage(delGetMessage);
                objDisAllowView = new DelDisAllowView(delDisAllowView);
                objStopControl = new DelStopControl(delStopControl);                
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GlobalVariable", "ctlDesktop_Sharing.xaml.cs");
            }
        }