| 150 | } |
| 151 | |
| 152 | bool SendCharMessage(HWND hwnd, UINT msg, wchar_t ch) { |
| 153 | DWORD_PTR result = 0; |
| 154 | LRESULT ret = ::SendMessageTimeoutW(hwnd, msg, (WPARAM)ch, (LPARAM)1, SMTO_BLOCK | SMTO_ABORTIFHUNG, 200, &result); |
| 155 | if (ret != 0) |
| 156 | return true; |
| 157 | |
| 158 | return ::PostMessageW(hwnd, msg, (WPARAM)ch, 0) != 0; |
| 159 | } |
| 160 | |
| 161 | } // namespace |
| 162 |
no outgoing calls
no test coverage detected