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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user