CompareStringEx

[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern int CompareStringEx(
   string lpLocaleName,
   uint dwCmpFlags,
   string lpString1,
   int cchCount1,
   string lpString2,
   int cchCount2,
   IntPtr lpVersionInformation,
   IntPtr lpReserved,
   IntPtr lParam
);

Microsoft documentation: Link

Last updated