ReactOS 0.4.16-dev-424-ge4748fe
|
Go to the source code of this file.
Macros | |
#define | SERVICE_ACCESS (SERVICE_QUERY_STATUS | SERVICE_START | SERVICE_STOP | DELETE) |
Functions | |||||||||||
DWORD | KmtpCreateService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, IN DWORD ServiceType, OUT SC_HANDLE *ServiceHandle) | ||||||||||
KmtServiceInit | |||||||||||
Initialize service management routines (by opening the service control manager)
| |||||||||||
DWORD | KmtServiceInit (VOID) | ||||||||||
KmtServiceCleanup | |||||||||||
Clean up resources used by service management routines.
| |||||||||||
DWORD | KmtServiceCleanup (BOOLEAN IgnoreErrors) | ||||||||||
KmtCreateService | |||||||||||
Create the specified driver service and return a handle to it
| |||||||||||
DWORD | KmtCreateService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, OUT SC_HANDLE *ServiceHandle) | ||||||||||
KmtGetServiceStateAsString | |||||||||||
| |||||||||||
static PCSTR | KmtGetServiceStateAsString (IN DWORD ServiceState) | ||||||||||
KmtEnsureServiceState | |||||||||||
| |||||||||||
static DWORD | KmtEnsureServiceState (IN PCWSTR ServiceName OPTIONAL, IN SC_HANDLE ServiceHandle, IN DWORD ExpectedServiceState) | ||||||||||
KmtStartService | |||||||||||
Start the specified driver service by handle or name (and return a handle to it)
| |||||||||||
DWORD | KmtStartService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) | ||||||||||
KmtCreateAndStartService | |||||||||||
Create and start the specified driver service and return a handle to it
| |||||||||||
DWORD | KmtCreateAndStartService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, OUT SC_HANDLE *ServiceHandle, IN BOOLEAN RestartIfRunning) | ||||||||||
KmtStopService | |||||||||||
Stop the specified driver service by handle or name (and return a handle to it)
| |||||||||||
DWORD | KmtStopService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) | ||||||||||
KmtDeleteService | |||||||||||
Delete the specified driver service by handle or name (and return a handle to it)
| |||||||||||
DWORD | KmtDeleteService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) | ||||||||||
KmtCloseService | |||||||||||
Close the specified driver service handle
| |||||||||||
DWORD | KmtCloseService (IN OUT SC_HANDLE *ServiceHandle) | ||||||||||
Variables | |
static SC_HANDLE | ScmHandle |
#define SERVICE_ACCESS (SERVICE_QUERY_STATUS | SERVICE_START | SERVICE_STOP | DELETE) |
DWORD KmtCreateAndStartService | ( | IN PCWSTR | ServiceName, |
IN PCWSTR | ServicePath, | ||
IN PCWSTR DisplayName | OPTIONAL, | ||
OUT SC_HANDLE * | ServiceHandle, | ||
IN BOOLEAN | RestartIfRunning | ||
) |
Definition at line 262 of file service.c.
Referenced by KmtLoadDriver(), and main().
DWORD KmtCreateService | ( | IN PCWSTR | ServiceName, |
IN PCWSTR | ServicePath, | ||
IN PCWSTR DisplayName | OPTIONAL, | ||
OUT SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 92 of file service.c.
Referenced by KmtCreateAndStartService(), and main().
Definition at line 356 of file service.c.
Referenced by KmtFltDeleteService(), KmtUnloadDriver(), and main().
|
static |
Definition at line 155 of file service.c.
Referenced by KmtStartService(), and KmtStopService().
Definition at line 115 of file service.c.
Referenced by KmtEnsureServiceState().
DWORD KmtpCreateService | ( | IN PCWSTR | ServiceName, |
IN PCWSTR | ServicePath, | ||
IN PCWSTR DisplayName | OPTIONAL, | ||
IN DWORD | ServiceType, | ||
OUT SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 414 of file service.c.
Referenced by KmtCreateService(), and KmtFltCreateService().
Definition at line 217 of file service.c.
Referenced by KmtCreateAndStartService(), main(), and START_TEST().
Definition at line 315 of file service.c.
Referenced by KmtCreateAndStartService(), KmtUnloadDriver(), KmtUnloadDriverKeepService(), and main().
|
static |
Definition at line 30 of file service.c.
Referenced by KmtDeleteService(), KmtpCreateService(), KmtServiceCleanup(), KmtServiceInit(), KmtStartService(), and KmtStopService().