/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/powerdisplay/PowerDisplay.Lib/Drivers/MonitorDisplayInfo.cs
39 строк
2 KB
moooyo
[PowerDisplay] Detect built-in panel when driven by the discrete GPU (#48637)
22 июн 2026, 08:37
Не верифицирован
22 июн 2026, 08:37
32ad98a
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace PowerDisplay.Common.Drivers { /// <summary> /// Monitor display information structure produced by QueryDisplayConfig. /// Used by MonitorManager during discovery and by both controllers. Immutable value /// type — populated once by <see cref="DisplayConfigInventory"/> and read-only thereafter. /// </summary> public readonly record struct MonitorDisplayInfo { /// <summary> /// Gets the monitor device path (e.g., "\\?\DISPLAY#DELA1D8#..."). /// This is unique per target and used as the primary key. /// </summary> public string DevicePath { get; init; } /// <summary> /// Gets the GDI device name (e.g., "\\.\DISPLAY1"). /// This is used to match with GetMonitorInfo results from HMONITOR. /// In mirror mode, multiple targets may share the same GDI name. /// </summary> public string GdiDeviceName { get; init; } /// <summary> /// Gets the friendly display name from EDID. /// </summary> public string FriendlyName { get; init; } /// <summary> /// Gets the monitor number based on QueryDisplayConfig path index. /// This matches the number shown in Windows Display Settings "Identify" feature. /// 1-based index (paths[0] = 1, paths[1] = 2, etc.) /// </summary> public int MonitorNumber { get; init; } } }