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
  • 627

TFS 2008 权限攻略3(使用TFS Administration Tool)

首先简单介绍下TFS权限的设置位置,TFS建立项目后,大体分为三个地方设置一个用户的权限,分别是"TFS本身(这里还分为工作项和代 码)"、"Report Service"、"SharePoint项...

[Cloud Computing]Mechanisms: Remote Administration System

Remote Administration System The remote administration system mechanism provides tools and user...

Linux Administration Handbook 笔记 startup script

1. Bootstrapping = Booting Bootstrapping :starting up a computer During bootstrapping, the ker...

OpenAM Administration Guide---笔记(2)

本来打算把这本书看完的,果然flag不能随便立,往url里加入userId的目标基本达成,但是出现了安全性问题,当把userid用cookie从apache传给后台后,在apache往浏览器返回时,居...

ebtables - Ethernet bridge frame table administration

ebtables - Ethernet bridge frame table administration

如何使用Microsoft.Web.Administration操作IIS7.0

IIS 7.0提供了一个全面的管理代码管理应用程序编程接口(API),允许在XML配置文件,方便访问服务器对象的完整操作。 这份文件将引导使用新的管理API来修改服务器的配置和管理服务器对象。 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Terminal Services Administration
举报原因:
原因补充:

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