Thursday, May 24, 2012

Java'da Windows işletim sisteminin ekranını kilitleme

public class Runnig {

    public static void main(String[] args) {
        try {
            Runtime.getRuntime().exec("C:\\\\Windows\\\\System32\\\\rundll32.exe user32.dll,LockWorkStation");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}

No comments:

Post a Comment