Java实现Windows锁屏
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 }