0.0.2 • Published 8 years ago
is_session_locked v0.0.2
is_session_locked
Detect whether the Windows user session is locked..
Typically used to decide whether the computer can be used for backgoround tasks.
Installation
npm install is_session_lockedAPI
var isl = require('is_session_locked');
setInterval(
function() { console.log("is_session_locked", isl.is_session_locked()); },
2000);is_session_locked()
Returns true if no user is logged-in or if the session is locked.
Return false if the user is logged-in and the session is in use.