c# - How do I lock and force the user to re-enter one's windows password? -
c# - How do I lock and force the user to re-enter one's windows password? -
i want lock accessing of current operating user, if user
clicked on start → pointed shutdown → click on lock
how in c#?
http://jessn.blogspot.com/2009/05/lock-my-computer-programatically-in-c.html article says best:
a much improve design isn't hard coded windows scheme paths, etc:
using system.runtime.interopservices;
[dllimport("user32.dll")] public static extern void lockworkstation();
then phone call lockworkstation();
c# windows windows-shell user-accounts
Comments
Post a Comment