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

Function detachInputFromIEThread

cpp/webdriver-interactions/interactions.cpp:373–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373static void detachInputFromIEThread(HWND directInputTo)
374{
375 DWORD currThreadId = GetCurrentThreadId();
376 DWORD ieWinThreadId = GetWindowThreadProcessId(directInputTo, NULL);
377
378 if (hook) {
379 UnhookWindowsHookEx(hook);
380 }
381
382 if (moduleHandle) {
383 FreeLibrary(moduleHandle);
384 }
385
386 if (ieWinThreadId != currThreadId) {
387 AttachThreadInput(currThreadId, ieWinThreadId, false);
388 }
389}
390
391extern "C"
392{

Callers 2

sendKeysFunction · 0.85
releaseModifierKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected