RegisterTouchWindow function user32

Win32Result<bool> RegisterTouchWindow(
  1. HWND hwnd,
  2. REGISTER_TOUCH_WINDOW_FLAGS ulFlags
)

Registers a window as being touch-capable.

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

Implementation

Win32Result<bool> RegisterTouchWindow(
  HWND hwnd,
  REGISTER_TOUCH_WINDOW_FLAGS ulFlags,
) {
  final result_ = RegisterTouchWindow_Wrapper(hwnd, ulFlags);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}