| 906 | } |
| 907 | |
| 908 | unsigned 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 | |
| 921 | unsigned int WINAPI IECommandExecutor::ThreadProc(LPVOID lpParameter) { |
| 922 | LOG(TRACE) << "Entering IECommandExecutor::ThreadProc"; |