(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
npm install win32.showlockscreen
var showLockScreen = require('win32.showlockscreen')
showLockScreen()
This module will use rundll32.exe to call method ShowLockScreen() inside user32.dll
Until next time.