[SERVICES] On service start control message, send the service tag

This commit is contained in:
Pierre Schweitzer
2018-12-30 18:44:32 +01:00
parent 6183774efa
commit 2ee627ba63
2 changed files with 2 additions and 0 deletions

View File

@@ -1431,6 +1431,7 @@ ScmSendStartCommand(PSERVICE Service,
? SERVICE_CONTROL_START_OWN
: SERVICE_CONTROL_START_SHARE;
ControlPacket->hServiceStatus = (SERVICE_STATUS_HANDLE)Service;
ControlPacket->dwServiceTag = Service->dwTag;
/* Copy the start command line */
ControlPacket->dwServiceNameOffset = sizeof(SCM_CONTROL_PACKET);

View File

@@ -30,6 +30,7 @@ typedef struct _SCM_CONTROL_PACKET
DWORD dwSize;
DWORD dwControl;
DWORD dwArgumentsCount;
DWORD dwServiceTag;
SERVICE_STATUS_HANDLE hServiceStatus;
DWORD dwServiceNameOffset;
DWORD dwArgumentsOffset;