且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我在哪里可以得到ULONG为LoginID值传递给WTSConnectSession?

更新时间:2023-02-26 19:46:37

您正在寻找从会话ID WTSEnumerateSessions WTSGetActiveConsoleSessionId ProcessIdToSessionId 等。从一个 WTSQuerySessionInformation 也是一个会话ID,当然。

You're looking for the session ID from WTSEnumerateSessions, WTSGetActiveConsoleSessionId, ProcessIdToSessionId and so on. The one from WTSQuerySessionInformation is also a session ID, of course.

记住,你需要两个会话ID此功能。

Remember that you need two session IDs for this function.