1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-20 18:23:21 +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

@@ -156,8 +156,15 @@ function childContainer()
if ((tsid = require('user-sessions').getProcessOwnerName(process.pid).tsid) == 0)
{
// We are running as LocalSystem
child_options.uid = options.uid;
child_options.type = require('child_process').SpawnTypes.USER;
if (process.platform == 'win32' && options.uid == -1)
{
child_options.type = require('child_process').SpawnTypes.WINLOGON;
}
else
{
child_options.uid = options.uid;
child_options.type = require('child_process').SpawnTypes.USER;
}
}
else
{