1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 23:33:38 +00:00

Added support for mesage-box to display on lock/login screen on Windows

This commit is contained in:
Bryan Roe
2020-07-01 17:11:19 -07:00
parent ba8e43b47c
commit ef58abb73c
4 changed files with 28 additions and 8 deletions

View File

@@ -69,11 +69,19 @@ function messageBox()
{
ret.options.uid = sid == null ? require('user-sessions').consoleUid() : sid;
if (ret.options.uid == require('user-sessions').getProcessOwnerName(process.pid).tsid) { delete ret.options.uid; }
if (sid == null && require('user-sessions').locked()) { ret.options.uid = -1; }
}
catch (ee)
{
ret._rej('No logged on users');
return (ret);
if (sid == null)
{
ret.options.uid = -1;
}
else
{
ret._rej(ee);
return (ret);
}
}
ret._ipc = require('child-container').create(ret.options);