| 545 | #endif |
| 546 | |
| 547 | LRESULT CALLBACK ProtectedModeWndProc(int nCode, WPARAM wParam, LPARAM lParam) { |
| 548 | CWPSTRUCT* call_window_proc_struct = reinterpret_cast<CWPSTRUCT*>(lParam); |
| 549 | if (WD_IS_BROWSER_PROTECTED_MODE == call_window_proc_struct->message) { |
| 550 | BOOL is_protected_mode = FALSE; |
| 551 | HRESULT hr = ::IEIsProtectedModeProcess(&is_protected_mode); |
| 552 | webdriver::HookProcessor::SetFlagValue(is_protected_mode == TRUE); |
| 553 | } |
| 554 | return ::CallNextHookEx(NULL, nCode, wParam, lParam); |
| 555 | } |
| 556 | |
| 557 | LRESULT CALLBACK AllowSetForegroundProc(int nCode, WPARAM wParam, LPARAM lParam) { |
| 558 | if ((nCode == HC_ACTION) && (wParam == PM_REMOVE)) { |
nothing calls this directly
no outgoing calls
no test coverage detected