Terminal Services Administration

原创 2007年09月17日 14:29:00

Terminal Services Administration

The Terminal Services API enables you to enumerate and manage Terminal Servers, client sessions, and processes.

To retrieve the names of all the Terminal Servers in a domain, call the NetServerEnum function to enumerate servers of the SV_TYPE_TERMINALSERVER type. To open a handle to a specific Terminal Server, pass the server name in a call to the WTSOpenServer function. Call the WTSCloseServer function to close the handle when you are finished with it.

You can use the handle returned by WTSOpenServer to perform the following operations on the server.

Function Operation
WTSDisconnectSession Disconnects the client from a specified session. The session remains active and the user can log on again to connect to the same session.
WTSEnumerateSessions Returns a list of sessions on the specified Terminal Server.
WTSEnumerateProcesses Returns a list of processes on the specified Terminal Server.
WTSLogoffSession Logs off the specified session.
WTSQuerySessionInformation Returns information about the specified session on the specified Terminal Server.
WTSSendMessage Shows a message box on the client display of a specified session.
WTSShutdownSystem Shuts down and optionally restarts a specified Terminal Server.
WTSTerminateProcess Terminates a specified process on a specified Terminal Server.
WTSVirtualChannelOpen Opens a handle to the server end of a specified virtual channel. For more information about virtual channels, see Using Terminal Services Virtual Channels.
WTSWaitSystemEvent Waits for an event, such as the creation of a client session or a user logging on to the Terminal Server.

Several of these functions allocate buffers to return information to the caller. Call the WTSFreeMemory function to free the buffer when you are finished with it.

 
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Windows Terminal Services

  • 2008-12-22 16:55
  • 710KB
  • 下载

终端服务(Terminal Services)简介

终端服务是在Windows NT中首先引入的一个服务。终端服务使用RDP协议(远程桌面协议)客户端连接,使用终端服务的客户可以在远程以图形界面的方式访问服务器,并且可以调用服务器中的应用程序、组件、服...
  • jjhua
  • jjhua
  • 2011-06-08 15:23
  • 604

IIS7管理API-Microsoft.Web.Administration

目前,网上关于Microsoft.Web.Administration的有效教程比较少,感觉入门难点主要是不知道自己需要的功能在什么位置,特写下此篇文章供大家参考,考虑到此问题相关的开发人员水平较高,...

Hyper Terminal 配置

  • 2014-08-14 17:34
  • 389KB
  • 下载

Hyper_Terminal

  • 2015-03-17 18:53
  • 113KB
  • 下载

使用oracle自带的DATABASE ADMINISTRATION 恢复整个数据库

startup mount shutdown immediate shutdown immediate SQL*Plus: Release 11.1.0.6.0 - Production...

terminal server patch x86

  • 2012-12-29 16:42
  • 63KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)