SystemTrayMenu/Helper/WindowsExplorerSort.cs

17 lines
446 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace SystemTrayMenu.Helper
{
internal class WindowsExplorerSort : IComparer<string>
{
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
private static extern int StrCmpLogicalW(string x, string y);
public int Compare(string x, string y)
{
return StrCmpLogicalW(x, y);
}
}
}