mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-10-03 10:36:30 +13:00
25 lines
843 B
C#
25 lines
843 B
C#
// <copyright file="StrCmpLogicalW.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace SystemTrayMenu.DllImports
|
|
{
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Versioning;
|
|
|
|
/// <summary>
|
|
/// wraps the methodcalls to native windows dll's.
|
|
/// </summary>
|
|
public static partial class NativeMethods
|
|
{
|
|
public static int ShlwapiStrCmpLogicalW(string x, string y)
|
|
{
|
|
return StrCmpLogicalW(x, y);
|
|
}
|
|
|
|
[SupportedOSPlatform("windows")]
|
|
[DllImport("shlwapi.dll", ExactSpelling = true, SetLastError = true, CharSet = CharSet.Unicode)]
|
|
[DefaultDllImportSearchPaths(DllImportSearchPath.UserDirectories)]
|
|
private static extern int StrCmpLogicalW(string x, string y);
|
|
}
|
|
}
|