mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
[SERVICES] Fix the initial service status
- The initial dwWin32ExitCode for a disabled service is ERROR_SERVICE_DISABLED and ERROR_SRVICE_NEVER_STARTED for non-disabled services. - The initial dwWaitHint is 2000 (2 seconds) for (user-mode) services and 0 for drivers. - Move all driver-related code to driver.c.
This commit is contained in:
parent
12b0dfb71e
commit
e917471e04
4 changed files with 48 additions and 21 deletions
|
@ -2279,13 +2279,13 @@ RCreateServiceW(
|
|||
|
||||
/* Allocate a new service entry */
|
||||
dwError = ScmCreateNewServiceRecord(lpServiceName,
|
||||
&lpService);
|
||||
&lpService,
|
||||
dwServiceType,
|
||||
dwStartType);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
goto done;
|
||||
|
||||
/* Fill the new service entry */
|
||||
lpService->Status.dwServiceType = dwServiceType;
|
||||
lpService->dwStartType = dwStartType;
|
||||
lpService->dwErrorControl = dwErrorControl;
|
||||
|
||||
/* Fill the display name */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue