문제

I'm looking for a function that could perform a fast user switching. Something like ExitWindowsEx() or InitiateShutdown(). I searched in MSDN but I could find anything useful. The only thing was that: http://msdn.microsoft.com/en-us/library/windows/desktop/bb776893%28v=vs.85%29.aspx but there is nothing how to do it programically. Thanks in advance.

도움이 되었습니까?

해결책

Fast User Switching is implemented via Remote Desktop Services (used to be called Terminal Services), so to initiate the switching screen it's simply a matter of disconnecting the current session:

WTSDisconnectSession(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, FALSE);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top