SystemTrayMenu/Helpers/WindowsExplorerSort.cs
Peter Kirmeier 0158499a2c Simplified directory and file discovery
Corrected namespace naming of Helpers
2023-04-16 14:17:33 +02:00

23 lines
572 B
C#

// <copyright file="WindowsExplorerSort.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace SystemTrayMenu.Helpers
{
using System.Collections.Generic;
using SystemTrayMenu.DllImports;
internal class WindowsExplorerSort : IComparer<string?>
{
public int Compare(string? x, string? y)
{
if (x != null && y != null)
{
return NativeMethods.ShlwapiStrCmpLogicalW(x, y);
}
return 0;
}
}
}