在 windows xp 中识别远程会话
Identify remote session in windows xp
在 windows XP 上有没有什么方法可以使用 C++ 来识别哪个会话是远程会话?
如有任何建议,我们将不胜感激。
调用WTSIsRemoteSession()
,查看reference doc
然后选择“_WTS_INFO_CLASSWTSInfoClass”的信息类型,设置WTSInfoClass = WTSIsRemoteSession
Determines whether the current session is a remote session. The
WTSQuerySessionInformation function returns a value of TRUE to
indicate that the current session is a remote session, and FALSE to
indicate that the current session is a local session. This value can
only be used for the local machine, so the hServer parameter of the
WTSQuerySessionInformation function must contain
WTS_CURRENT_SERVER_HANDLE.
在 windows XP 上有没有什么方法可以使用 C++ 来识别哪个会话是远程会话?
如有任何建议,我们将不胜感激。
调用WTSIsRemoteSession()
,查看reference doc
然后选择“_WTS_INFO_CLASSWTSInfoClass”的信息类型,设置WTSInfoClass = WTSIsRemoteSession
Determines whether the current session is a remote session. The WTSQuerySessionInformation function returns a value of TRUE to indicate that the current session is a remote session, and FALSE to indicate that the current session is a local session. This value can only be used for the local machine, so the hServer parameter of the WTSQuerySessionInformation function must contain WTS_CURRENT_SERVER_HANDLE.