[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] public static extern bool PathMatchSpec( [MarshalAs(UnmanagedType.LPWStr)] string pszFile, [MarshalAs(UnmanagedType.LPWStr)] string pszSpec );
Microsoft documentation: Link
Last updated 1 year ago