ReactOS 0.4.16-dev-258-g81860b4
|
#include "services.h"
#include <userenv.h>
#include <strsafe.h>
#include <reactos/undocuser.h>
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Variables | |
LIST_ENTRY | ImageListHead |
LIST_ENTRY | ServiceListHead |
static RTL_RESOURCE | DatabaseLock |
static DWORD | ResumeCount = 1 |
static DWORD | NoInteractiveServices = 0 |
static DWORD | ServiceTag = 0 |
static CRITICAL_SECTION | ControlServiceCriticalSection |
static DWORD | PipeTimeout = 30000 |
#define NDEBUG |
Definition at line 22 of file database.c.
Definition at line 956 of file database.c.
Referenced by ScmCreateServiceDatabase().
DWORD Int_EnumDependentServicesW | ( | HKEY | hServicesKey, |
PSERVICE | lpService, | ||
DWORD | dwServiceState, | ||
PSERVICE * | lpServices, | ||
LPDWORD | pcbBytesNeeded, | ||
LPDWORD | lpServicesReturned | ||
) |
Definition at line 782 of file rpcserver.c.
Referenced by Int_EnumDependentServicesW(), RControlService(), REnumDependentServicesA(), REnumDependentServicesW(), and ScmDeleteService().
Definition at line 2276 of file database.c.
Referenced by ShutdownHandlerRoutine().
Definition at line 2065 of file database.c.
Referenced by wWinMain().
Definition at line 1286 of file database.c.
Referenced by ScmGetBootAndSystemDriverState().
DWORD ScmControlService | ( | _In_ HANDLE | hControlPipe, |
_In_ PCWSTR | pServiceName, | ||
_In_ DWORD | dwControl, | ||
_In_ SERVICE_STATUS_HANDLE | hServiceStatus | ||
) |
Definition at line 1569 of file database.c.
Referenced by RControlService(), ScmAutoShutdownServices(), and ScmStopThread().
DWORD ScmControlServiceEx | ( | _In_ HANDLE | hControlPipe, |
_In_ PCWSTR | pServiceName, | ||
_In_ DWORD | dwControl, | ||
_In_ SERVICE_STATUS_HANDLE | hServiceStatus, | ||
_In_opt_ DWORD | dwServiceTag, | ||
_In_opt_ DWORD | argc, | ||
_In_reads_opt_(argc) const PCWSTR * | argv | ||
) |
Definition at line 1417 of file database.c.
Referenced by ScmControlService(), and ScmStartUserModeService().
|
static |
Definition at line 53 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage().
DWORD ScmCreateNewServiceRecord | ( | LPCWSTR | lpServiceName, |
PSERVICE * | lpServiceRecord, | ||
DWORD | dwServiceType, | ||
DWORD | dwStartType | ||
) |
Definition at line 767 of file database.c.
Referenced by CreateServiceListEntry(), and RCreateServiceW().
Definition at line 458 of file database.c.
Referenced by ScmLoadService().
Definition at line 1187 of file database.c.
Referenced by wWinMain().
Definition at line 1120 of file database.c.
Referenced by ScmCreateServiceDatabase(), and ScmShutdownServiceDatabase().
Definition at line 2363 of file database.c.
Referenced by wWinMain().
Definition at line 863 of file database.c.
Referenced by ScmDereferenceService().
Definition at line 816 of file database.c.
Referenced by ScmDeleteService().
Definition at line 939 of file database.c.
Referenced by RCloseServiceHandle(), RSetServiceStatus(), and ScmStopThread().
Definition at line 312 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage(), ScmLogonService(), and ScmRemoveServiceImage().
Definition at line 744 of file database.c.
Referenced by CreateServiceListEntry(), and RCreateServiceW().
Definition at line 1384 of file database.c.
Referenced by wWinMain().
Definition at line 1161 of file database.c.
Referenced by ScmCreateServiceDatabase().
Definition at line 686 of file database.c.
Referenced by RCreateServiceW(), RGetServiceKeyNameA(), and RGetServiceKeyNameW().
Definition at line 657 of file database.c.
Referenced by Int_EnumDependentServicesW(), RCreateServiceW(), RGetServiceDisplayNameA(), RGetServiceDisplayNameW(), RI_ScValidatePnPService(), and ROpenServiceW().
Definition at line 715 of file database.c.
Referenced by REnumServiceGroupW(), and REnumServicesStatusExW().
|
static |
Definition at line 153 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage().
DWORD ScmGetServiceNameFromTag | ( | IN PTAG_INFO_NAME_FROM_TAG_IN_PARAMS | InParams, |
OUT PTAG_INFO_NAME_FROM_TAG_OUT_PARAMS * | OutParams | ||
) |
Definition at line 183 of file database.c.
Referenced by RI_ScQueryServiceTagInfo().
Definition at line 2335 of file database.c.
Referenced by wWinMain().
|
static |
Definition at line 270 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage().
|
static |
Definition at line 45 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage(), ScmStartUserModeService(), and ScmWaitForServiceConnect().
Definition at line 1911 of file database.c.
Referenced by ScmAutoStartServices(), and ScmStartService().
Definition at line 2314 of file database.c.
Referenced by RChangeServiceConfig2W(), RChangeServiceConfigW(), RCloseServiceHandle(), RCreateServiceW(), RDeleteService(), ROpenServiceW(), RSetServiceObjectSecurity(), RSetServiceStatus(), ScmAcquireServiceStartLock(), ScmAutoShutdownServices(), ScmGetServiceNameFromTag(), ScmReleaseServiceStartLock(), and ScmStopThread().
Definition at line 2321 of file database.c.
Referenced by REnumServiceGroupW(), REnumServicesStatusExW(), RI_ScGetCurrentGroupStateW(), RQueryServiceConfig2A(), RQueryServiceConfig2W(), RQueryServiceConfigA(), RQueryServiceConfigW(), RQueryServiceObjectSecurity(), RQueryServiceStatus(), RQueryServiceStatusEx(), ScmQueryServiceLockStatusA(), and ScmQueryServiceLockStatusW().
|
static |
Definition at line 359 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage().
Definition at line 931 of file database.c.
Referenced by RCreateServiceW(), ROpenServiceW(), RSetServiceStatus(), and ScmLoadService().
VOID ScmRemoveServiceImage | ( | PSERVICE_IMAGE | pServiceImage | ) |
Definition at line 622 of file database.c.
Referenced by ScmDeleteServiceRecord(), ScmLoadService(), and ScmStopThread().
Definition at line 1274 of file database.c.
Referenced by ShutdownHandlerRoutine().
Definition at line 2024 of file database.c.
Referenced by RStartServiceA(), and RStartServiceW().
Definition at line 1761 of file database.c.
Referenced by ScmLoadService().
Definition at line 2328 of file database.c.
Referenced by RChangeServiceConfig2W(), RChangeServiceConfigW(), RCloseServiceHandle(), RCreateServiceW(), RDeleteService(), REnumServiceGroupW(), REnumServicesStatusExW(), RI_ScGetCurrentGroupStateW(), ROpenServiceW(), RQueryServiceConfig2A(), RQueryServiceConfig2W(), RQueryServiceConfigA(), RQueryServiceConfigW(), RQueryServiceObjectSecurity(), RQueryServiceStatus(), RQueryServiceStatusEx(), RSetServiceObjectSecurity(), RSetServiceStatus(), ScmAcquireServiceStartLock(), ScmAutoShutdownServices(), ScmGetServiceNameFromTag(), ScmQueryServiceLockStatusA(), ScmQueryServiceLockStatusW(), ScmReleaseServiceStartLock(), and ScmStopThread().
Definition at line 1584 of file database.c.
Referenced by ScmStartUserModeService().
|
static |
Definition at line 37 of file database.c.
Referenced by ScmAutoStartServices(), ScmControlServiceEx(), ScmDeleteNamedPipeCriticalSection(), ScmInitNamedPipeCriticalSection(), and ScmStartService().
|
static |
Definition at line 31 of file database.c.
Referenced by ScmCreateServiceDatabase(), ScmLockDatabaseExclusive(), ScmLockDatabaseShared(), ScmShutdownServiceDatabase(), and ScmUnlockDatabase().
LIST_ENTRY ImageListHead |
Definition at line 28 of file database.c.
Referenced by ScmCreateOrReferenceServiceImage(), ScmCreateServiceDatabase(), and ScmGetServiceImageByImagePath().
|
static |
Definition at line 33 of file database.c.
Referenced by ScmGetNoInteractiveServicesValue(), and ScmStartUserModeService().
|
static |
Definition at line 38 of file database.c.
Referenced by ScmControlServiceEx(), ScmCreateNewControlPipe(), ScmInitNamedPipeCriticalSection(), and ScmWaitForServiceConnect().
|
static |
Definition at line 32 of file database.c.
Referenced by CreateProcessInternalW(), and ScmCreateNewServiceRecord().
LIST_ENTRY ServiceListHead |
Definition at line 29 of file database.c.
Referenced by REnumServiceGroupW(), REnumServicesStatusExW(), ScmAutoShutdownServices(), ScmAutoStartServices(), ScmCreateNewServiceRecord(), ScmCreateServiceDatabase(), ScmDeleteMarkedServices(), ScmGetBootAndSystemDriverState(), ScmGetServiceEntryByDisplayName(), ScmGetServiceEntryByName(), ScmGetServiceEntryByResumeCount(), and ScmGetServiceNameFromTag().
|
static |
Definition at line 34 of file database.c.
Referenced by GetOwnerModuleFromTagEntry(), ScmGenerateServiceTag(), and service_main().