1 public class LockWindows { 2 public static void main(String [] args) throws Exception { 3 Runtime.getRuntime().exec("RunDll32.exe user32.dll,LockWorkStation"); 4 } 5 }
1 public class LockWindows { 2 public static void main(String [] args) throws Exception { 3 Runtime.getRuntime().exec("RunDll32.exe user32.dll,LockWorkStation"); 4 } 5 }
转载于:https://www.cnblogs.com/changfangxing/p/11049571.html