RegisterTouchHitTestingWindow function user32

Win32Result<bool> RegisterTouchHitTestingWindow(
  1. HWND hwnd,
  2. int value
)

Registers a window to process the WM_TOUCHHITTESTING notification.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-registertouchhittestingwindow.

Implementation

Win32Result<bool> RegisterTouchHitTestingWindow(HWND hwnd, int value) {
  resolveGetLastError();
  final result_ = _RegisterTouchHitTestingWindow(hwnd, value);
  return .new(value: result_ != FALSE, error: GetLastError());
}