コード例 #1
0
 public TerminalServicesSession(ITerminalServer server, int sessionId)
     : this(
         server, sessionId,
         NativeMethodsHelper.QuerySessionInformationForString(server.Handle, sessionId,
                                                              WTS_INFO_CLASS.WTSWinStationName),
         NativeMethodsHelper.GetConnectionState(server.Handle, sessionId))
 {
 }