1
0
Fork 0
mirror of https://github.com/atom0s/Steamless.git synced 2024-12-19 23:07:41 +01:00

API: Add import for MapFileAndCheckSum.

This commit is contained in:
atom0s 2022-09-23 15:54:19 -07:00
parent b6d445fda4
commit 51be8ca795
No known key found for this signature in database
GPG key ID: 37D5FD3494D79AF8
2 changed files with 20 additions and 0 deletions

View file

@ -608,5 +608,15 @@ namespace Steamless.API.PE32
public uint SizeOfZeroFill;
public uint Characteristics;
}
/// <summary>
/// imagehlp!MapFileAndChecksum
/// </summary>
/// <param name="Filename"></param>
/// <param name="HeaderSum"></param>
/// <param name="CheckSum"></param>
/// <returns></returns>
[DllImport("imagehlp.dll", CharSet = CharSet.Auto)]
public static extern int MapFileAndCheckSum(string Filename, out uint HeaderSum, out uint CheckSum);
}
}

View file

@ -604,5 +604,15 @@ namespace Steamless.API.PE64
public uint SizeOfZeroFill;
public uint Characteristics;
}
/// <summary>
/// imagehlp!MapFileAndChecksum
/// </summary>
/// <param name="Filename"></param>
/// <param name="HeaderSum"></param>
/// <param name="CheckSum"></param>
/// <returns></returns>
[DllImport("imagehlp.dll", CharSet = CharSet.Auto)]
public static extern int MapFileAndCheckSum(string Filename, out uint HeaderSum, out uint CheckSum);
}
}