diff options
Diffstat (limited to 'src/test/examples/TestEngine/TestEngine.h')
-rw-r--r-- | src/test/examples/TestEngine/TestEngine.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/test/examples/TestEngine/TestEngine.h b/src/test/examples/TestEngine/TestEngine.h new file mode 100644 index 00000000..52872100 --- /dev/null +++ b/src/test/examples/TestEngine/TestEngine.h | |||
@@ -0,0 +1,42 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | #include "precomp.h" | ||
5 | |||
6 | class TestEngine | ||
7 | { | ||
8 | public: | ||
9 | HRESULT LoadBA( | ||
10 | __in LPCWSTR wzBAFilePath | ||
11 | ); | ||
12 | |||
13 | HRESULT Log( | ||
14 | __in LPCWSTR wzMessage | ||
15 | ); | ||
16 | |||
17 | HRESULT SendShutdownEvent( | ||
18 | __in BOOTSTRAPPER_SHUTDOWN_ACTION defaultAction | ||
19 | ); | ||
20 | |||
21 | private: | ||
22 | static HRESULT BAEngineLog( | ||
23 | __in TestEngine* pContext, | ||
24 | __in BAENGINE_LOG_ARGS* pArgs, | ||
25 | __in BAENGINE_LOG_RESULTS* /*pResults*/ | ||
26 | ); | ||
27 | |||
28 | static HRESULT WINAPI EngineProc( | ||
29 | __in BOOTSTRAPPER_ENGINE_MESSAGE message, | ||
30 | __in const LPVOID pvArgs, | ||
31 | __inout LPVOID pvResults, | ||
32 | __in_opt LPVOID pvContext | ||
33 | ); | ||
34 | |||
35 | public: | ||
36 | TestEngine(); | ||
37 | |||
38 | ~TestEngine(); | ||
39 | |||
40 | private: | ||
41 | BOOTSTRAPPER_CREATE_RESULTS* m_pCreateResults; | ||
42 | }; \ No newline at end of file | ||