[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Ansi)] public static extern bool EnumDisplayDevicesA(string lpDevice, uint iDevNum, ref DISPLAY_DEVICE lpDisplayDevice, uint dwFlags );
Microsoft documentation: Link
Last updated 1 year ago