SetGestureConfig function user32

Win32Result<bool> SetGestureConfig(
  1. HWND hwnd,
  2. int cIDs,
  3. Pointer<GESTURECONFIG> pGestureConfig,
  4. int cbSize,
)

Configures the messages that are sent from a window for Windows Touch gestures.

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

Implementation

Win32Result<bool> SetGestureConfig(
  HWND hwnd,
  int cIDs,
  Pointer<GESTURECONFIG> pGestureConfig,
  int cbSize,
) {
  resolveGetLastError();
  final result_ = _SetGestureConfig(hwnd, NULL, cIDs, pGestureConfig, cbSize);
  return .new(value: result_ != FALSE, error: GetLastError());
}