示例#1
0
 public void StopRemoteControl()
 {
     if (!Local)
     {
         throw new InvalidOperationException(
                   "Cannot stop remote control on sessions that are running on remote servers");
     }
     if (IsVistaSp1OrHigher)
     {
         NativeMethodsHelper.StopRemoteControl(_sessionId);
     }
     else
     {
         NativeMethodsHelper.LegacyStopRemoteControl(_server.Handle, _sessionId, true);
     }
 }