AssocGetPerceivedType

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
public static extern int AssocGetPerceivedType(
   [MarshalAs(UnmanagedType.LPWStr)] string pszExt,
   out IntPtr ppszType
);

Microsoft documentation: Link

Last updated