谢谢. 还有两个问题? 1,可以遍历 所有会话? 2,可以知道已启动的程序所在的会话? 1、有相应的API可调用; 2、是的,当前输入界面就是所在会话:specified WtsGetActiveConsoleSessionID as the SessionID, this function retrieves the Terminal Services session currently attached to the physical console. The physical console is the monitor, keyboard, and mouse.
谢谢. 还有两个问题? 1,可以遍历 所有会话? 2,可以知道已启动的程序所在的会话? 1、有相应的API可调用; 2、是的,当前输入界面就是所在会话:specified WtsGetActiveConsoleSessionID as the SessionID, this function retrieves the Terminal Services session currently attached to the physical console. The physical console is the monitor, keyboard, and mouse. WTSQueryUserToken 这个方法没用哦 都是发回false 我是在windows 20003 测试的。有特殊要求?
windows的用户登录机制啊。一个用户名可以通过远程桌面 同时多次登录
还有两个问题?
1,可以遍历 所有会话?
2,可以知道已启动的程序所在的会话?
1、有相应的API可调用;
2、是的,当前输入界面就是所在会话:specified WtsGetActiveConsoleSessionID as the SessionID, this function retrieves the Terminal Services session currently attached to the physical console. The physical console is the monitor, keyboard, and mouse.
还有两个问题?
1,可以遍历 所有会话?
2,可以知道已启动的程序所在的会话?
1、有相应的API可调用;
2、是的,当前输入界面就是所在会话:specified WtsGetActiveConsoleSessionID as the SessionID, this function retrieves the Terminal Services session currently attached to the physical console. The physical console is the monitor, keyboard, and mouse.
WTSQueryUserToken 这个方法没用哦 都是发回false
我是在windows 20003 测试的。有特殊要求?
看是什么错误
上面链接是C++的,也可以参考一下