关闭

Terminal Services Administration

687人阅读 评论(0) 收藏 举报

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.

 
0
0
猜你在找
【套餐】Hadoop生态系统零基础入门
【套餐】嵌入式Linux C编程基础
【套餐】2017软考系统集成项目——任铄
【套餐】Android 5.x顶级视频课程——李宁
【套餐】深度学习入门视频课程——唐宇迪
【直播】广义线性模型及其应用——李科
【直播】从0到1 区块链的概念到实践
【直播】计算机视觉原理及实战——屈教授
【直播】机器学习之凸优化——马博士
【直播】机器学习&数据挖掘7周实训--韦玮
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:79630次
    • 积分:1016
    • 等级:
    • 排名:千里之外
    • 原创:16篇
    • 转载:24篇
    • 译文:0篇
    • 评论:2条
    最新评论
    牛博
    影视资源