Table of Contents

Method TryGetList

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.dll

TryGetList(THandle, out IList<DesktopWindowInfo>)

Gets the MaaFramework.Binding.DesktopWindowInfo list from a DesktopWindowListBuffer.

public static abstract bool TryGetList(THandle handle, out IList<DesktopWindowInfo> windowList)

Parameters

handle THandle

The DesktopWindowListBufferHandle.

windowList IList<DesktopWindowInfo>

The list of windows.

Returns

bool

true if an empty list or each element was got successfully from the DesktopWindowListBuffer; otherwise, false.

TryGetList(out IList<DesktopWindowInfo>, Func<THandle, bool>)

Gets the MaaFramework.Binding.DesktopWindowInfo list from a function using DesktopWindowListBuffer.

public static abstract bool TryGetList(out IList<DesktopWindowInfo> windowList, Func<THandle, bool> writeBuffer)

Parameters

windowList IList<DesktopWindowInfo>

The list of windows.

writeBuffer Func<THandle, bool>

The function used to write the window list to the list buffer.

Returns

bool

true if an empty list or each element was got successfully from the DesktopWindowListBuffer; otherwise, false.