ReactOS 0.4.16-dev-109-gf4cb10f
|
Go to the source code of this file.
Macros | |
#define | KMT_STRINGIZE(x) #x |
#define | location(file, line) do { ErrorFileAndLine = file ":" KMT_STRINGIZE(line); } while (0) |
#define | error_value(Error, value) do { location(__FILE__, __LINE__); Error = value; } while (0) |
#define | error(Error) error_value(Error, GetLastError()) |
#define | error_goto(Error, label) do { error(Error); goto label; } while (0) |
#define | error_value_goto(Error, value, label) do { error_value(Error, value); goto label; } while (0) |
Functions | |
DWORD | KmtServiceInit (VOID) |
DWORD | KmtServiceCleanup (BOOLEAN IgnoreErrors) |
DWORD | KmtCreateService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, OUT SC_HANDLE *ServiceHandle) |
DWORD | KmtStartService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) |
DWORD | KmtCreateAndStartService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, OUT SC_HANDLE *ServiceHandle, IN BOOLEAN RestartIfRunning) |
DWORD | KmtStopService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) |
DWORD | KmtDeleteService (IN PCWSTR ServiceName OPTIONAL, IN OUT SC_HANDLE *ServiceHandle) |
DWORD | KmtCloseService (IN OUT SC_HANDLE *ServiceHandle) |
Variables | |
PCSTR | ErrorFileAndLine |
#define error | ( | Error | ) | error_value(Error, GetLastError()) |
#define location | ( | file, | |
line | |||
) | do { ErrorFileAndLine = file ":" KMT_STRINGIZE(line); } while (0) |
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().
Definition at line 217 of file service.c.
Referenced by KmtCreateAndStartService().
Definition at line 315 of file service.c.
Referenced by KmtCreateAndStartService(), KmtUnloadDriver(), KmtUnloadDriverKeepService(), and main().
|
extern |
Definition at line 34 of file kmtest.c.
Referenced by OutputError().