Command Line parametersThe following command line parameters exist for the backend of Automatic Keylock, Keylock.exe: - /off
This command line switch shuts down Automatic Keylock completely without altering the settings. To enable it again, call Keylock.exe without parameters.
- /toggle
This parameter toggles Automatic Keylock between on and off state.
- /reload
If Keylock.exe is called with this parameter, the settings are reloaded from registry.
API You can control Automatic Keylock via an API which works via window messages. The window which accepts these messages has the class name "AutoKeylockWindow". The window messages are as follows:
- WM_USER+0x100 - enable features
With this message, you can enable certain features of Automatic Keylock. - wParam is ignored - lParam can contain one of the following modifiers: 0x1 - enable keypad lock 0x10001 - enable device lock 0x2 - enable screen saver - return value: 0
- WM_USER + 0x101 - disable features
This message disables the features. - wParam is ignored - lParam can be a combination of the following: 0x1 - disable keypad lock 0x2 - disable screen saver
- WM_USER+ 0x102 - query feature state (Automatic Keylock >= 3.9)
With this message, you can query the current feature state. - wParam is ignored - lParam is ignored - return value: high word: 0xffee (a magic to check if the value is valid) low word: bitmask (0x1 - keypad lock is enabled, 0x2 - screen saver is enabled)
|