MsiGetFileHash

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiGetFileHash(
   [MarshalAs(UnmanagedType.LPTStr)] string szFilePath,
   uint dwOptions,
   ref IntPtr phHash
);

Microsoft documentation: Link

Last updated