diff --git a/generation/WinSDK/enums.json b/generation/WinSDK/enums.json index 34599936..667ec377 100644 --- a/generation/WinSDK/enums.json +++ b/generation/WinSDK/enums.json @@ -36894,6 +36894,30 @@ "value": "0x57696E20" } ] + }, + { + "name": "DEVICE_STATE", + "autoPopulate": { + "filter": "DEVICE_STATE_", + "header": "mmdeviceapi.h" + }, + "uses": [ + { + "interface": "IMMNotificationClient", + "method": "OnDeviceStateChanged", + "parameter": "dwNewState" + }, + { + "interface": "IMMDeviceEnumerator", + "method": "EnumAudioEndpoints", + "parameter": "dwStateMask" + }, + { + "interface": "IMMDevice", + "method": "GetState", + "parameter": "return" + } + ] } ] } diff --git a/scripts/ChangesSinceLastRelease.txt b/scripts/ChangesSinceLastRelease.txt index f127c0a7..3a89942e 100644 --- a/scripts/ChangesSinceLastRelease.txt +++ b/scripts/ChangesSinceLastRelease.txt @@ -404,3 +404,16 @@ Windows.Win32.UI.Shell.NOTIFYICONDATAA.dwStateMask(X64, Arm64)...System.UInt32 = Windows.Win32.UI.Shell.NOTIFYICONDATAA.dwStateMask(X86)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE Windows.Win32.UI.Shell.NOTIFYICONDATAW.dwStateMask(X64, Arm64)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE Windows.Win32.UI.Shell.NOTIFYICONDATAW.dwStateMask(X86)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE +# Fixed #1787. +Windows.Win32.Media.Audio.Apis.DEVICE_STATE_ACTIVE removed +Windows.Win32.Media.Audio.Apis.DEVICE_STATE_DISABLED removed +Windows.Win32.Media.Audio.Apis.DEVICE_STATE_NOTPRESENT removed +Windows.Win32.Media.Audio.Apis.DEVICE_STATE_UNPLUGGED removed +Windows.Win32.Media.Audio.DEVICE_STATE added +Windows.Win32.Media.Audio.DEVICE_STATE.DEVICE_STATE_ACTIVE added +Windows.Win32.Media.Audio.DEVICE_STATE.DEVICE_STATE_DISABLED added +Windows.Win32.Media.Audio.DEVICE_STATE.DEVICE_STATE_NOTPRESENT added +Windows.Win32.Media.Audio.DEVICE_STATE.DEVICE_STATE_UNPLUGGED added +Windows.Win32.Media.Audio.IMMDevice.GetState : return...HRESULT => DEVICE_STATE +Windows.Win32.Media.Audio.IMMDeviceEnumerator.EnumAudioEndpoints : dwStateMask...UInt32 => DEVICE_STATE +Windows.Win32.Media.Audio.IMMNotificationClient.OnDeviceStateChanged : dwNewState...UInt32 => DEVICE_STATE