Class DisplayHelper
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
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
displayIdstringThe display identifier to search on.
findStringstringThe string to match against window titles.