`TrackPopupMenu()` binding is wrong in `windows`. Fixed #1685.

TrackPopupMenuEx returns error code 87, wrong parameter. Fixed #1684.
This commit is contained in:
Mike Battista 2023-08-21 09:04:09 -07:00
Родитель 874d865a75
Коммит ef60b44cc2
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1697,4 +1697,6 @@ MIB_TCP6ROW_OWNER_PID::dwState=[AssociatedEnum("MIB_TCP_STATE")]
MIB_TCPROW_LH::_Anonymous_e__Union::dwState=[AssociatedEnum("MIB_TCP_STATE")]
MIB_TCPROW_OWNER_MODULE::dwState=[AssociatedEnum("MIB_TCP_STATE")]
MIB_TCPROW_OWNER_PID::dwState=[AssociatedEnum("MIB_TCP_STATE")]
MIB_TCPROW_W2K::dwState=[AssociatedEnum("MIB_TCP_STATE")]
MIB_TCPROW_W2K::dwState=[AssociatedEnum("MIB_TCP_STATE")]
TrackPopupMenu=[CanReturnMultipleSuccessValues]
TrackPopupMenuEx=[CanReturnMultipleSuccessValues]

Просмотреть файл

@ -493,3 +493,6 @@ Windows.Win32.NetworkManagement.IpHelper.MIB_TCPROW_LH._Anonymous_e__Union.dwSta
Windows.Win32.NetworkManagement.IpHelper.MIB_TCPROW_OWNER_MODULE.dwState : => [AssociatedEnum(MIB_TCP_STATE)]
Windows.Win32.NetworkManagement.IpHelper.MIB_TCPROW_OWNER_PID.dwState : => [AssociatedEnum(MIB_TCP_STATE)]
Windows.Win32.NetworkManagement.IpHelper.MIB_TCPROW_W2K.dwState : => [AssociatedEnum(MIB_TCP_STATE)]
# Fixed #1685 and #1684.
Windows.Win32.UI.WindowsAndMessaging.Apis.TrackPopupMenu : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-trackpopupmenu),SupportedOSPlatform(windows5.0)] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-trackpopupmenu),SupportedOSPlatform(windows5.0)]
Windows.Win32.UI.WindowsAndMessaging.Apis.TrackPopupMenuEx : [DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-trackpopupmenuex),SupportedOSPlatform(windows5.0)] => [CanReturnMultipleSuccessValues,DllImport(USER32.dll,ExactSpelling=True,PreserveSig=False,SetLastError=True),Documentation(https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-trackpopupmenuex),SupportedOSPlatform(windows5.0)]