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
时间: 2024-11-13 07:55:42