Table of Contents

Constructor MaaWin32Controller

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

MaaWin32Controller(nint, Win32ScreencapMethod, Win32InputMethod, LinkOption, CheckStatusOption)

Creates a MaaFramework.Binding.MaaWin32Controller instance.

public MaaWin32Controller(nint hWnd, Win32ScreencapMethod screencapMethod, Win32InputMethod inputMethod, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)

Parameters

hWnd nint

The handle to a win32 window.

screencapMethod Win32ScreencapMethod

The screencap method.

inputMethod Win32InputMethod

The input method.

link LinkOption

Executes MaaFramework.Binding.IMaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.

check CheckStatusOption

Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaWin32ControllerCreate(System.IntPtr,System.UInt64,System.UInt64,MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).