From 7728e34e48a4fdb710ecc92dd8dca833bff3993f Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 2 Sep 2022 16:12:26 -0500 Subject: Use elevated engine to make the restart request when it is available. Fixes 6145 --- .../Manual/BafThmutilTesting/BafThmUtilTesting.cpp | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'src/test/burn/TestData/Manual/BafThmutilTesting') 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 return hr; } - virtual STDMETHODIMP WndProc( - __in HWND hWnd, - __in UINT uMsg, - __in WPARAM /*wParam*/, - __in LPARAM lParam, - __inout BOOL* pfProcessed, - __inout LRESULT* plResult - ) - { - switch (uMsg) - { - case WM_QUERYENDSESSION: - if (BOOTSTRAPPER_DISPLAY_FULL <= m_command.display) - { - DWORD dwEndSession = static_cast(lParam); - if (ENDSESSION_CRITICAL & dwEndSession) - { - // Return false to get the WM_ENDSESSION message so that critical shutdowns can be delayed. - *plResult = FALSE; - *pfProcessed = TRUE; - } - } - break; - case WM_ENDSESSION: - if (BOOTSTRAPPER_DISPLAY_FULL <= m_command.display) - { - ::MessageBoxW(hWnd, L"WM_ENDSESSION", L"BAFunctions WndProc", MB_OK); - } - break; - } - return S_OK; - } - public: //IBootstrapperApplication virtual STDMETHODIMP OnExecuteBegin( __in DWORD /*cExecutingPackages*/, -- cgit v1.2.3-55-g6feb