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,
) {
  resolveGetLastError();
  final result_ = _RegisterTouchWindow(hwnd, ulFlags);
  return .new(value: result_ != FALSE, error: GetLastError());
}