1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 12:13:16 +00:00

1. Added getDomain() to user-sessions for windows

2. Fixed service.restart() error condition, to reject the promise
3. Fixed ServiceMain start/stop/restart/state for Windows
This commit is contained in:
Bryan Roe
2021-04-20 15:02:54 -07:00
parent 05b492caed
commit 9fa19bf1be
4 changed files with 35 additions and 110 deletions

View File

@@ -940,7 +940,7 @@ function serviceManager()
return;
}
this.startp._a();
}, function (e) { console.rawLog('stop() failed => ' + e.toString());});
}, function (e) { this.startp._r(e); });
return (p.startp);
}
}

View File

@@ -271,6 +271,10 @@ function UserSessions()
{
return (this.getSessionAttribute(uid, this.InfoClass.WTSUserName));
}
this.getDomain = function getDomain(uid)
{
return (this.getSessionAttribute(uid, this.InfoClass.WTSDomainName));
}
this.Current = function Current(cb)
{
var retVal = {};