SendMessageTimeout function user32
Sends the specified message to one or more windows.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendmessagetimeoutw.
Implementation
Win32Result<LRESULT> SendMessageTimeout(
HWND hWnd,
int msg,
WPARAM wParam,
LPARAM lParam,
SEND_MESSAGE_TIMEOUT_FLAGS fuFlags,
int uTimeout,
Pointer<IntPtr>? lpdwResult,
) {
resolveGetLastError();
final result_ = _SendMessageTimeout(
hWnd,
msg,
wParam,
lParam,
fuFlags,
uTimeout,
lpdwResult ?? nullptr,
);
return .new(value: .new(result_), error: GetLastError());
}