mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-30 09:06:32 +13:00
17 lines
443 B
C#
17 lines
443 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SystemTrayMenu.Helper
|
|
{
|
|
class WindowsExplorerSort : IComparer<string>
|
|
{
|
|
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
|
|
static extern int StrCmpLogicalW(String x, String y);
|
|
|
|
public int Compare(string x, string y)
|
|
{
|
|
return StrCmpLogicalW(x, y);
|
|
}
|
|
}
|
|
}
|