winapi - Locking workstation or user switching -
i 've been using lockworkstation api lock workstation, works in windows 7 laptop.
in win 8.1 desktop, function nothing. can go programmatically "switch user" screen?
thanks.
you can display "switch user" screen next code:
wtsdisconnectsession(wts_current_server_handle, wts_current_session, false);
note wtsdisconnectsession
available vista , up, if need xp compatibility have utilize getprocaddress
rather calling function directly.
winapi
No comments:
Post a Comment