https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ee627ba635bd45f93da1…
commit 2ee627ba635bd45f93da1f5967191c35c5e1646c
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Dec 30 18:44:32 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Dec 30 21:44:25 2018 +0100
[SERVICES] On service start control message, send the service tag
---
base/system/services/database.c | 1 +
sdk/include/reactos/services/services.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/base/system/services/database.c b/base/system/services/database.c
index 26172a7a94..60e6d4bea1 100644
--- a/base/system/services/database.c
+++ b/base/system/services/database.c
@@ -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);
diff --git a/sdk/include/reactos/services/services.h
b/sdk/include/reactos/services/services.h
index b6f9d17fcc..fa8ebd2f64 100644
--- a/sdk/include/reactos/services/services.h
+++ b/sdk/include/reactos/services/services.h
@@ -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;