From 51be8ca795a782d2f1ccc6d0fbe4560b59dcc656 Mon Sep 17 00:00:00 2001 From: atom0s Date: Fri, 23 Sep 2022 15:54:19 -0700 Subject: [PATCH] API: Add import for MapFileAndCheckSum. --- Steamless.API/PE32/NativeApi32.cs | 10 ++++++++++ Steamless.API/PE64/NativeApi64.cs | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/Steamless.API/PE32/NativeApi32.cs b/Steamless.API/PE32/NativeApi32.cs index 4f65b13..d18ac19 100644 --- a/Steamless.API/PE32/NativeApi32.cs +++ b/Steamless.API/PE32/NativeApi32.cs @@ -608,5 +608,15 @@ namespace Steamless.API.PE32 public uint SizeOfZeroFill; public uint Characteristics; } + + /// + /// imagehlp!MapFileAndChecksum + /// + /// + /// + /// + /// + [DllImport("imagehlp.dll", CharSet = CharSet.Auto)] + public static extern int MapFileAndCheckSum(string Filename, out uint HeaderSum, out uint CheckSum); } } \ No newline at end of file diff --git a/Steamless.API/PE64/NativeApi64.cs b/Steamless.API/PE64/NativeApi64.cs index 7b04209..e601193 100644 --- a/Steamless.API/PE64/NativeApi64.cs +++ b/Steamless.API/PE64/NativeApi64.cs @@ -604,5 +604,15 @@ namespace Steamless.API.PE64 public uint SizeOfZeroFill; public uint Characteristics; } + + /// + /// imagehlp!MapFileAndChecksum + /// + /// + /// + /// + /// + [DllImport("imagehlp.dll", CharSet = CharSet.Auto)] + public static extern int MapFileAndCheckSum(string Filename, out uint HeaderSum, out uint CheckSum); } } \ No newline at end of file