Table of Contents

Class DisplayHelper

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Helper class for display related functions

public static class DisplayHelper
Inheritance
DisplayHelper
Inherited Members

Methods

EnumerateDisplays()

Enumerates all available display devices in the system.

public static List<DisplayDescriptor> EnumerateDisplays()

Returns

List<DisplayDescriptor>

A list of display descriptors, or null if enumeration fails.

FindWindow(string, int)

Finds a window belonging to a specific process on a display.

public static nint FindWindow(string displayId, int processId)

Parameters

displayId string

The display identifier to search on.

processId int

The process identifier to find.

Returns

nint

The window handle of the process, or IntPtr.Zero if not found.

FindWindow(string, string)

Finds windows on a specific display matching a search string.

public static List<nint> FindWindow(string displayId, string findString)

Parameters

displayId string

The display identifier to search on.

findString string

The string to match against window titles.

Returns

List<nint>

A list of window handles matching the criteria, or null if the search fails.