Method TryGetList
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TryGetList(nint, out IList<DesktopWindowInfo>)
Gets the MaaFramework.Binding.DesktopWindowInfo list from a DesktopWindowListBuffer.
public static bool TryGetList(nint handle, out IList<DesktopWindowInfo> windowList)
Parameters
handle
nint-
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<nint, bool>)
Gets the MaaFramework.Binding.DesktopWindowInfo list from a function using DesktopWindowListBuffer.
public static bool TryGetList(out IList<DesktopWindowInfo> windowList, Func<nint, bool> writeBuffer)
Parameters
windowList
IList<DesktopWindowInfo>-
The list of windows.
writeBuffer
Func<nint, bool>-
The function used to write the window list to the list buffer.