MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ProtectedModeWndProc

Function ProtectedModeWndProc

cpp/iedriver/DocumentHost.cpp:547–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545#endif
546
547LRESULT 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
557LRESULT CALLBACK AllowSetForegroundProc(int nCode, WPARAM wParam, LPARAM lParam) {
558 if ((nCode == HC_ACTION) && (wParam == PM_REMOVE)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected