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.
/// A bitmap that is drawn by the window that owns the menu. The application must process the WM_MEASUREITEM and
67
71
/// WM_DRAWITEM messages.
@@ -1673,7 +1677,7 @@ public static extern unsafe int LookupIconIdFromDirectoryEx(
1673
1677
/// </param>
1674
1678
/// <param name="lpDisplayDevice">
1675
1679
/// A pointer to a <see cref="DISPLAY_DEVICE"/> structure that receives information about the display device specified by <paramref name="iDevNum"/>.
1676
-
/// Before calling <see cref="EnumDisplayDevices(string, uint, DISPLAY_DEVICE*, EnumDisplayDevicesFlags)"/>, you must initialize the member <see cref="DISPLAY_DEVICE.cb"/> to the size, in bytes, of <see cref="DISPLAY_DEVICE"/>.
1680
+
/// Before calling <see cref="EnumDisplayDevices(char*, uint, DISPLAY_DEVICE*, EnumDisplayDevicesFlags)"/>, you must initialize the member <see cref="DISPLAY_DEVICE.cb"/> to the size, in bytes, of <see cref="DISPLAY_DEVICE"/>.
1677
1681
/// </param>
1678
1682
/// <param name="dwFlags">
1679
1683
/// Set this flag to <see cref="EnumDisplayDevicesFlags.EDD_GET_DEVICE_INTERFACE_NAME"/> to retrieve the device interface name for <c>GUID_DEVINTERFACE_MONITOR</c>, which is registered by the operating system on a per monitor basis.
@@ -1688,14 +1692,94 @@ public static extern unsafe int LookupIconIdFromDirectoryEx(
1688
1692
/// <remarks>
1689
1693
/// See https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumdisplaydevicesa#remarks.
/// 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(char*, 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(char*, uint, DEVMODE*)"/>, 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(char*, uint, DEVMODE*)"/> 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(char*, uint, DEVMODE*)"/> 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="DEVMODE"/> 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(char*, 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(char*, uint, DEVMODE*, 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(char*, uint, DEVMODE*, 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(char*, uint, DEVMODE*, 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="DEVMODE"/> 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