diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-09-02 16:12:26 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-09-03 15:29:26 -0500 |
commit | 7728e34e48a4fdb710ecc92dd8dca833bff3993f (patch) | |
tree | 83d9a6a5068985670dc47121d400fc7c491c23ec /src/test/burn/TestData/Manual/BafThmutilTesting | |
parent | eea6121f388197435529922b3cb13d3631afb9a8 (diff) | |
download | wix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.tar.gz wix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.tar.bz2 wix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.zip |
Use elevated engine to make the restart request when it is available.
Fixes 6145
Diffstat (limited to 'src/test/burn/TestData/Manual/BafThmutilTesting')
-rw-r--r-- | src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp index ce74534d..c619dbd6 100644 --- a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp +++ b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | |||
@@ -89,39 +89,6 @@ public: // IBAFunctions | |||
89 | return hr; | 89 | return hr; |
90 | } | 90 | } |
91 | 91 | ||
92 | virtual STDMETHODIMP WndProc( | ||
93 | __in HWND hWnd, | ||
94 | __in UINT uMsg, | ||
95 | __in WPARAM /*wParam*/, | ||
96 | __in LPARAM lParam, | ||
97 | __inout BOOL* pfProcessed, | ||
98 | __inout LRESULT* plResult | ||
99 | ) | ||
100 | { | ||
101 | switch (uMsg) | ||
102 | { | ||
103 | case WM_QUERYENDSESSION: | ||
104 | if (BOOTSTRAPPER_DISPLAY_FULL <= m_command.display) | ||
105 | { | ||
106 | DWORD dwEndSession = static_cast<DWORD>(lParam); | ||
107 | if (ENDSESSION_CRITICAL & dwEndSession) | ||
108 | { | ||
109 | // Return false to get the WM_ENDSESSION message so that critical shutdowns can be delayed. | ||
110 | *plResult = FALSE; | ||
111 | *pfProcessed = TRUE; | ||
112 | } | ||
113 | } | ||
114 | break; | ||
115 | case WM_ENDSESSION: | ||
116 | if (BOOTSTRAPPER_DISPLAY_FULL <= m_command.display) | ||
117 | { | ||
118 | ::MessageBoxW(hWnd, L"WM_ENDSESSION", L"BAFunctions WndProc", MB_OK); | ||
119 | } | ||
120 | break; | ||
121 | } | ||
122 | return S_OK; | ||
123 | } | ||
124 | |||
125 | public: //IBootstrapperApplication | 92 | public: //IBootstrapperApplication |
126 | virtual STDMETHODIMP OnExecuteBegin( | 93 | virtual STDMETHODIMP OnExecuteBegin( |
127 | __in DWORD /*cExecutingPackages*/, | 94 | __in DWORD /*cExecutingPackages*/, |