You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
/// Retrieves information about one of the graphics modes for a display device. To retrieve information for all the graphics modes of a display device, make a series of calls to this function.
1705
+
/// </summary>
1706
+
/// <param name="lpszDeviceName">
1707
+
/// A pointer to a null-terminated string that specifies the display device about whose graphics mode the function will obtain information.
1708
+
/// This parameter is either <c>NULL</c> or a <see cref="DISPLAY_DEVICE.DeviceName"/> returned from <see cref="EnumDisplayDevices(string, uint, DISPLAY_DEVICE*, EnumDisplayDevicesFlags)"/>.
1709
+
/// A <c>NULL</c> value specifies the current display device on the computer on which the calling thread is running.
1710
+
/// </param>
1711
+
/// <param name="iModeNum">
1712
+
/// <para>The type of information to be retrieved. This value can be a graphics mode index or one of the following values.</para>
1713
+
/// <para><see cref="ENUM_CURRENT_SETTINGS"/>: Retrieve the current settings for the display device.</para>
1714
+
/// <para><see cref="ENUM_REGISTRY_SETTINGS"/>: Retrieve the settings for the display device that are currently stored in the registry.</para>
1715
+
/// <para>
1716
+
/// Graphics mode indexes start at zero. To obtain information for all of a display device's graphics modes, make a series of calls to <see cref="EnumDisplaySettings(string, uint, DEVMODEW*)"/>, as follows: Set <paramref name="iModeNum"/> to zero for the first call,
1717
+
/// and increment <paramref name="iModeNum"/> by one for each subsequent call.
1718
+
/// </para>
1719
+
/// <para>
1720
+
/// Continue calling the function until the return value is zero.<br/>
1721
+
/// When you call <see cref="EnumDisplaySettings(string, uint, DEVMODEW*)"/> with <paramref name="iModeNum"/> set to zero, the operating system initializes and caches information about the display device.<br/>
1722
+
/// When you call <see cref="EnumDisplaySettings(string, uint, DEVMODEW*)"/> with <paramref name="iModeNum"/> set to a nonzero value,
1723
+
/// the function returns the information that was cached the last time the function was called with iModeNum set to zero.
1724
+
/// </para>
1725
+
/// </param>
1726
+
/// <param name="lpDevMode">
1727
+
/// A pointer to a <see cref="DEVMODEW"/> structure into which the function stores information about the specified graphics mode.
1728
+
/// </param>
1729
+
/// <remarks>
1730
+
/// The function fails if <paramref name="iModeNum"/> is greater than the index of the display device's last graphics mode.
1731
+
/// As noted in the description of the <paramref name="iModeNum"/> parameter, you can use this behavior to enumerate all of a display device's graphics modes.
1732
+
/// </remarks>
1733
+
/// <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.</returns>
/// Retrieves information about one of the graphics modes for a display device. To retrieve information for all the graphics modes of a display device, make a series of calls to this function.
1743
+
/// </summary>
1744
+
/// <param name="lpszDeviceName">
1745
+
/// A pointer to a null-terminated string that specifies the display device about whose graphics mode the function will obtain information.
1746
+
/// This parameter is either <c>NULL</c> or a <see cref="DISPLAY_DEVICE.DeviceName"/> returned from <see cref="EnumDisplayDevices(string, uint, DISPLAY_DEVICE*, EnumDisplayDevicesFlags)"/>.
1747
+
/// A <c>NULL</c> value specifies the current display device on the computer on which the calling thread is running.
1748
+
/// </param>
1749
+
/// <param name="iModeNum">
1750
+
/// <para>The type of information to be retrieved. This value can be a graphics mode index or one of the following values.</para>
1751
+
/// <para><see cref="ENUM_CURRENT_SETTINGS"/>: Retrieve the current settings for the display device.</para>
1752
+
/// <para><see cref="ENUM_REGISTRY_SETTINGS"/>: Retrieve the settings for the display device that are currently stored in the registry.</para>
1753
+
/// <para>
1754
+
/// Graphics mode indexes start at zero. To obtain information for all of a display device's graphics modes, make a series of calls to <see cref="EnumDisplaySettingsEx(string, uint, DEVMODEW*, EnumDisplaySettingsExFlags)"/>, as follows: Set <paramref name="iModeNum"/> to zero for the first call,
1755
+
/// and increment <paramref name="iModeNum"/> by one for each subsequent call.
1756
+
/// </para>
1757
+
/// <para>
1758
+
/// Continue calling the function until the return value is zero.<br/>
1759
+
/// When you call <see cref="EnumDisplaySettingsEx(string, uint, DEVMODEW*, EnumDisplaySettingsExFlags)"/> with <paramref name="iModeNum"/> set to zero, the operating system initializes and caches information about the display device.<br/>
1760
+
/// When you call <see cref="EnumDisplaySettingsEx(string, uint, DEVMODEW*, EnumDisplaySettingsExFlags)"/> with <paramref name="iModeNum"/> set to a nonzero value,
1761
+
/// the function returns the information that was cached the last time the function was called with iModeNum set to zero.
1762
+
/// </para>
1763
+
/// </param>
1764
+
/// <param name="lpDevMode">
1765
+
/// A pointer to a <see cref="DEVMODEW"/> structure into which the function stores information about the specified graphics mode.
1766
+
/// </param>
1767
+
/// <param name="dwFlags">
1768
+
/// See documentation on the fields of <see cref="EnumDisplaySettingsExFlags"/>.
1769
+
/// </param>
1770
+
/// <remarks>
1771
+
/// The function fails if <paramref name="iModeNum"/> is greater than the index of the display device's last graphics mode.
1772
+
/// As noted in the description of the <paramref name="iModeNum"/> parameter, you can use this behavior to enumerate all of a display device's graphics modes.
1773
+
/// </remarks>
1774
+
/// <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.</returns>
0 commit comments