MCPcopy Create free account
hub / github.com/WallBreaker2/op / SendCharMessage

Function SendCharMessage

libop/window/WindowText.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool 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

Callers 2

SendStringMethod · 0.85
SendStringImeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected