Make `NotifyShellUpdate()` `public` to ease testing

This commit is contained in:
Susko3 2024-02-08 01:15:37 +01:00
parent 1dc54d6f25
commit 6ded79cf07
1 changed files with 2 additions and 2 deletions

View File

@ -125,6 +125,8 @@ public static void UninstallAssociations()
}
}
public static void NotifyShellUpdate() => SHChangeNotify(EventId.SHCNE_ASSOCCHANGED, Flags.SHCNF_IDLIST, IntPtr.Zero, IntPtr.Zero);
/// <summary>
/// Installs or updates associations.
/// </summary>
@ -162,8 +164,6 @@ string getLocalisedString(LocalisableString s)
}
}
internal static void NotifyShellUpdate() => SHChangeNotify(EventId.SHCNE_ASSOCCHANGED, Flags.SHCNF_IDLIST, IntPtr.Zero, IntPtr.Zero);
#region Native interop
[DllImport("Shell32.dll")]