diff options
Diffstat (limited to 'src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp')
| -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*/, |
