1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-03 00:53:41 +00:00

Added 'exstate' parameter that returns the windows service manager service state as the status code

This commit is contained in:
Bryan Roe
2022-09-15 23:47:11 -07:00
parent 81c3253e05
commit e0044984e5
3 changed files with 13 additions and 6 deletions

View File

@@ -80,7 +80,8 @@ function parseServiceStatus(token)
j.isOwnProcess = ((serviceType & 0x00000010) == 0x00000010);
j.isInteractive = ((serviceType & 0x00000100) == 0x00000100);
j.waitHint = token.Deref((6 * 4), 4).toBuffer().readUInt32LE();
switch (token.Deref((1 * 4), 4).toBuffer().readUInt32LE())
j.rawState = token.Deref((1 * 4), 4).toBuffer().readUInt32LE();
switch (j.rawState)
{
case 0x00000005:
j.state = 'CONTINUE_PENDING';