最近做一个远程桌面管理的软件,远程桌面接口可真难找,找了一天,终于把这几个API找出来了。
贴出来:

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 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.

转载于:https://www.cnblogs.com/erwin/archive/2007/07/08/809975.html

[笔记]远程终端API,Terminal Services Administration相关推荐

  1. Terminal Services将改名为RDS

    来源CNBETA 据TechNet Blogs透露,在Windows server 2008 R2中,原先的远程桌面连接服务Terminal Services将改名为Remote Desktop Se ...

  2. 开发常见错误解决(3)VS2005调试程序出错,绑定句柄无效 Terminal Services

         当我们使用VS2005调试程序时候出错,绑定句柄无效,这个是因为我们没有启动系统终端服务Terminal Services. 解决办法如下: 运行->Services.msc 启动Te ...

  3. 远程桌面无法连接服务器,启动Terminal Services 服务报1053错误

    今天碰到一棘手问题,一上午数据库服务器都无法连接,远程桌面也连不上了,但是可以PING通.项目组的同事一直反映数据库无法连接,耽误工作进度,真急人啊. 跑到机房一看,机器轰轰巨响,进入桌面,点个鼠标半 ...

  4. IIS 7管理API——Microsoft.Web.Administration介绍

    本文翻译整理自Carlos Aguilar Mares的blog文章:Microsoft.Web.Administration in IIS 7. 请注意本文的内容均基于Windows Vista B ...

  5. Asp.net core 学习笔记 ( Web Api )

    更新 : 2019-06-03  web api 返回 json 的情况下默认会把属性 PascalCase 变成 camelCase 很贴心哦. 如果你不喜欢可以修改它 services.AddMv ...

  6. [置顶]       【Visual C++】游戏开发笔记之一——API函数、DirectX的关键系统...

    本系列文章由zhmxy555(毛星云)编写,转载请注明出处. http://blog.csdn.net/zhmxy555/article/details/7318264 作者:毛星云    邮箱: h ...

  7. SpringCloud工作笔记048---RESTful API 中 HTTP 状态码的定义_以及把RESTFul版本号_放到http协议header中_以及RestFul设计时的两个误区

    JAVA技术交流QQ群:170933152 ------------------------- RESTful架构有一些典型的设计误区. 最常见的一种设计错误,就是URI包含动词.因为"资源 ...

  8. 微服务系列笔记之API事件订阅模式和元数据模式

    导语 今天继续总结关于micro api的其它用法.因为每个知识点基本类似,在这篇笔记中了event和meta做对比.本系列的笔记全部参考Go Micro官方源码及博客,比较多,有兴趣的可以去研究. ...

  9. JavaSE基础笔记——常用API、Lambda、常见算法

    日期与时间 时间日期是在任何一个程序系统里几乎都不可能忽略掉的数据量,而且大量的算法在底层都会使用到时间日期数据值作为算法的基本种子(随机数算法或加密算法都经常用到). 计算机里,时间日期的本质 作为 ...

最新文章

  1. iOS-查询数据库--指定数据表中的当前数据行的总数量
  2. 前沿研究:21世纪工程领域的重大挑战 | 中国工程院院刊
  3. 智课雅思词汇---五、优词词根字典
  4. C语言经典程序之:求十个整数中的最大最小数并输出(指针)
  5. 搭建scala 开发spark程序环境及实例演示
  6. SqlMap常用参数(一)
  7. C++中的友元函数和友元类
  8. Linux 命令之 which -- 查找并显示给定命令的绝对路径(查找命令的位置/查询命令的位置/搜索命令的位置/查看命令的位置)
  9. Oracle DG常用视图与运维护常用操作
  10. PHP的线程安全与非线程(NTS)安全版本的区别
  11. AndroidStudio 内存泄漏分析 Memory Monitor
  12. 【ArcGIS|空间分析|网络分析】7 使用一支车队服务一组停靠点
  13. Oracle-数据库的备份与恢复
  14. Vue3 抽离封装axios
  15. 计算机教程无线路由器桥接上网,计算机教程无线路由器桥接上网-路由器桥接设置图解...
  16. RCLAMP0544T 国产替代上海雷卯ULC0544T
  17. 机器视觉的来源与发展
  18. 神奇的 Python
  19. 总有个短信发来一行乱码_为什么手机短信变成乱码
  20. 大学本科《机器人程序设计课程》配套系统镜像使用说明( Ubuntu 14.04.5 + ROS indigo )

热门文章

  1. 推荐一个开源文本识别工具箱,实现 5 种实用经典算法
  2. 基于短视频的人脸解析比赛
  3. Python中用numpy进行图片处理
  4. 性能超最先进卷积!用Transformer进行图像语义分割!
  5. python线程间数据共享_python 进程间数据共享multiProcess.Manger实现解析
  6. 基于Tensorflow的神经网络解决用户流失概率问题
  7. linux中波浪号代表什么_建筑电气施工图纸中BV、ZRBLV和TC、SC符号代表什么?
  8. 计算机电子琴音乐,电脑电子琴软件
  9. 本地连不上远程服务器mysql_mysql本地连不上远程
  10. linux磁盘划分注意,划分磁盘阵列注意问题