我想锁定当前操作用户的访问,就好像用户一样点击开始→指向关机→点击锁定如何在C#中做到这一点? 最佳答案 http://jessn.blogspot.com/2009/05/lock-my-computer-programatically-in-c.html这篇文章说得最好:Amuchbetterdesignthatisn'thardcodedtoyourwindowssystempaths,etc:usingSystem.Runtime.InteropServices;[DllImport("user32.dll")]public