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

Method DelayPostMessageThreadProc

cpp/iedriver/IECommandExecutor.cpp:908–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908unsigned int WINAPI IECommandExecutor::DelayPostMessageThreadProc(LPVOID lpParameter) {
909 LOG(TRACE) << "Entering IECommandExecutor::DelayPostMessageThreadProc";
910 DelayPostMessageThreadContext* context = reinterpret_cast<DelayPostMessageThreadContext*>(lpParameter);
911 HWND window_handle = context->window_handle;
912 DWORD sleep_time = context->delay;
913 UINT message_to_post = context->msg;
914 delete context;
915
916 ::Sleep(sleep_time);
917 ::PostMessage(window_handle, message_to_post, NULL, NULL);
918 return 0;
919}
920
921unsigned int WINAPI IECommandExecutor::ThreadProc(LPVOID lpParameter) {
922 LOG(TRACE) << "Entering IECommandExecutor::ThreadProc";

Callers

nothing calls this directly

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected