Skip to content

Commit 579cc3e

Browse files
committed
Correct NIN flag type
1 parent bfce736 commit 579cc3e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

generation/WinSDK/ConstantsScraper.settings.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ NIN_BALLOONUSERCLICK=int
237237
NIN_POPUPCLOSE=int
238238
NIN_POPUPOPEN=int
239239
NIN_SELECT=int
240-
NIN_KEY=int
241240
NIN_KEYSELECT=int
241+
NINF_KEY=int
242242
NULLREGION=int
243243
PDH_ACCESS_DENIED=uint
244244
PDH_ASYNC_QUERY_TIMEOUT=uint

generation/WinSDK/manual/Shell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static unsafe partial class Apis
1616
[NativeTypeName("HRESULT")]
1717
public const int HLINK_S_FIRST = OLE_S_LAST + 1;
1818

19-
public const uint NIN_KEYSELECT = NIN_SELECT | NINF_KEY;
19+
public const int NIN_KEYSELECT = NIN_SELECT | NINF_KEY;
2020

2121
[DllImport("SHELL32.dll", EntryPoint = "#660", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
2222
public static extern BOOL FileIconInit([In]BOOL fRestoreCache)

scripts/ChangesSinceLastRelease.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,12 @@ Windows.Win32.UI.Shell.Apis.NIN_POPUPCLOSE...System.UInt32 => System.Int32
302302
Windows.Win32.UI.Shell.Apis.NIN_POPUPOPEN...System.UInt32 => System.Int32
303303
Windows.Win32.UI.Shell.Apis.NIN_SELECT...System.UInt32 => System.Int32
304304
Windows.Win32.UI.WindowsAndMessaging.Apis.WM_USER...System.UInt32 => System.Int32
305+
# Adjust NOTIFYICONDATA flags, types
306+
Windows.Win32.UI.Shell.NOTIFY_ICON_INFOTIP_FLAGS : => [Flags]
307+
Windows.Win32.UI.Shell.NOTIFY_ICON_STATE : => [Flags]
308+
Windows.Win32.UI.Shell.NOTIFYICONDATAA.dwStateMask(X64, Arm64)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE
309+
Windows.Win32.UI.Shell.NOTIFYICONDATAA.dwStateMask(X86)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE
310+
Windows.Win32.UI.Shell.NOTIFYICONDATAW.dwStateMask(X64, Arm64)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE
311+
Windows.Win32.UI.Shell.NOTIFYICONDATAW.dwStateMask(X86)...System.UInt32 => Windows.Win32.UI.Shell.NOTIFY_ICON_STATE
312+
# Correct NIN flag type
313+
Windows.Win32.UI.Shell.Apis.NINF_KEY...System.UInt32 => System.Int32

0 commit comments

Comments
 (0)