aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/TestEngine/TestEngine.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/examples/TestEngine/TestEngine.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/src/test/examples/TestEngine/TestEngine.h b/src/test/examples/TestEngine/TestEngine.h
index cf1c8aac..14b69999 100644
--- a/src/test/examples/TestEngine/TestEngine.h
+++ b/src/test/examples/TestEngine/TestEngine.h
@@ -2,6 +2,20 @@
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. 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 3
4 4
5enum WM_TESTENG
6{
7 WM_TESTENG_FIRST = WM_APP + 0xFFF, // this enum value must always be first.
8
9 WM_TESTENG_DETECT,
10 WM_TESTENG_PLAN,
11 WM_TESTENG_ELEVATE,
12 WM_TESTENG_APPLY,
13 WM_TESTENG_LAUNCH_APPROVED_EXE,
14 WM_TESTENG_QUIT,
15
16 WM_TESTENG_LAST, // this enum value must always be last.
17};
18
5class TestEngine 19class TestEngine
6{ 20{
7public: 21public:
@@ -17,19 +31,29 @@ public:
17 __in LPCWSTR wzMessage 31 __in LPCWSTR wzMessage
18 ); 32 );
19 33
34 HRESULT RunApplication();
35
20 HRESULT SendShutdownEvent( 36 HRESULT SendShutdownEvent(
21 __in BOOTSTRAPPER_SHUTDOWN_ACTION defaultAction 37 __in BOOTSTRAPPER_SHUTDOWN_ACTION defaultAction
22 ); 38 );
23 39
24 HRESULT SendStartupEvent(); 40 HRESULT SendStartupEvent();
25 41
42 HRESULT SimulateQuit(
43 __in DWORD dwExitCode
44 );
45
26 void UnloadBA(); 46 void UnloadBA();
27 47
28private: 48private:
29 static HRESULT BAEngineLog( 49 HRESULT BAEngineLog(
30 __in TestEngine* pContext,
31 __in BAENGINE_LOG_ARGS* pArgs, 50 __in BAENGINE_LOG_ARGS* pArgs,
32 __in BAENGINE_LOG_RESULTS* /*pResults*/ 51 __in BAENGINE_LOG_RESULTS* pResults
52 );
53
54 HRESULT BAEngineQuit(
55 __in BAENGINE_QUIT_ARGS* pArgs,
56 __in BAENGINE_QUIT_RESULTS* pResults
33 ); 57 );
34 58
35 static HRESULT WINAPI EngineProc( 59 static HRESULT WINAPI EngineProc(
@@ -39,6 +63,10 @@ private:
39 __in_opt LPVOID pvContext 63 __in_opt LPVOID pvContext
40 ); 64 );
41 65
66 HRESULT ProcessBAMessage(
67 __in const MSG* pmsg
68 );
69
42public: 70public:
43 TestEngine(); 71 TestEngine();
44 72
@@ -47,4 +75,5 @@ public:
47private: 75private:
48 HMODULE m_hBAModule; 76 HMODULE m_hBAModule;
49 BOOTSTRAPPER_CREATE_RESULTS* m_pCreateResults; 77 BOOTSTRAPPER_CREATE_RESULTS* m_pCreateResults;
78 DWORD m_dwThreadId;
50}; \ No newline at end of file 79}; \ No newline at end of file