https://github.com/jochemstoel/win32.showlockscreen
(Node.js) lock the computer and show login screen.
https://github.com/jochemstoel/win32.showlockscreen
lockscreen nodejs windows
Last synced: about 1 year ago
JSON representation
(Node.js) lock the computer and show login screen.
- Host: GitHub
- URL: https://github.com/jochemstoel/win32.showlockscreen
- Owner: jochemstoel
- Created: 2016-11-06T00:53:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T00:59:09.000Z (over 9 years ago)
- Last Synced: 2025-02-01T16:28:26.694Z (about 1 year ago)
- Topics: lockscreen, nodejs, windows
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# win32.showlockscreen
(Node.js) lock the computer and show login screen. This module for Node.js is inspired by the feedback from my friend Ernst.
This function will lock the computer and show the login screen. (Windows7 and higher only) You can find it on NPM: https://www.npmjs.com/package/win32.showlockscreen

## Install
```bash
npm install win32.showlockscreen
```
## Use
```js
var showLockScreen = require('win32.showlockscreen')
showLockScreen()
```
## How does it work?
This module will use rundll32.exe to call method ShowLockScreen() inside user32.dll
Until next time.