Ejemplo n.º 1
0
        /// <summary> 开启C#版VNC服务 </summary>
        public static void StartVncService()
        {
            RemoteViewService remoteViewService = RemoteViewService.GetVncService();

            remoteViewService.ServicePort     = Port;
            remoteViewService.Password        = Password;
            remoteViewService.BacklogMaxCount = 2;
            if (!remoteViewService.IsVncServiceRun)
            {
                remoteViewService.StartListener();
            }
        }