2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Kernel-Mode Test Suite Loader Application
5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
11 extern PCSTR ErrorFileAndLine
;
14 #define KMT_STRINGIZE(x) #x
15 #endif /* !defined KMT_STRINGIZE */
17 #define location(file, line) do { ErrorFileAndLine = file ":" KMT_STRINGIZE(line); } while (0)
18 #define error_value(Error, value) do { location(__FILE__, __LINE__); Error = value; } while (0)
19 #define error(Error) error_value(Error, GetLastError())
20 #define error_goto(Error, label) do { error(Error); goto label; } while (0)
21 #define error_value_goto(Error, value, label) do { error_value(Error, value); goto label; } while (0)
23 /* service management functions */
29 BOOLEAN IgnoreErrors
);
33 IN PCWSTR ServiceName
,
34 IN PCWSTR ServicePath
,
35 IN PCWSTR DisplayName OPTIONAL
,
36 OUT SC_HANDLE
*ServiceHandle
);
40 IN PCWSTR ServiceName OPTIONAL
,
41 IN OUT SC_HANDLE
*ServiceHandle
);
44 KmtCreateAndStartService(
45 IN PCWSTR ServiceName
,
46 IN PCWSTR ServicePath
,
47 IN PCWSTR DisplayName OPTIONAL
,
48 OUT SC_HANDLE
*ServiceHandle
,
49 IN BOOLEAN RestartIfRunning
);
53 IN PCWSTR ServiceName OPTIONAL
,
54 IN OUT SC_HANDLE
*ServiceHandle
);
58 IN PCWSTR ServiceName OPTIONAL
,
59 IN OUT SC_HANDLE
*ServiceHandle
);
61 DWORD
KmtCloseService(
62 IN OUT SC_HANDLE
*ServiceHandle
);
64 #endif /* !defined _KMTESTS_H_ */