[SERVICES] Implement ScmGenerateServiceTag and call it on service creation

This allows assigning an unique ServiceTag to each Win32 service
This commit is contained in:
Pierre Schweitzer 2018-12-30 14:09:54 +01:00
parent 519a2c9f6f
commit 1a9b9800b1
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 32 additions and 0 deletions

View file

@ -2636,6 +2636,10 @@ RCreateServiceW(
goto done;
lpService->dwRefCount = 1;
/* Get the service tag (if Win32) */
ScmGenerateServiceTag(lpService);
DPRINT("CreateService - lpService->dwRefCount %u\n", lpService->dwRefCount);
done: