Enumeration missing to capture DEVICE_STATE_xxx constants. Fixed #1787.
This commit is contained in:
Родитель
08d1cbd3d0
Коммит
4a843c19fb
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче