1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*++
6
7
8
9Module Name:
10
11 imagehlp.h
12
13Abstract:
14
15 This module defines the prototypes and constants required for the image
16 help routines.
17
18
19
20
21--*/
22
23#ifndef _IMAGEHLP_
24#define _IMAGEHLP_
25
26#if _MSC_VER > 1020
27#pragma once
28#endif
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#define IMAGEAPI __stdcall
35
36PIMAGE_NT_HEADERS
37IMAGEAPI
38CheckSumMappedFile (
39 PVOID BaseAddress,
40 DWORD FileLength,
41 PDWORD HeaderSum,
42 PDWORD CheckSum
43 );
44
45PIMAGE_NT_HEADERS
46IMAGEAPI
47ImageNtHeader (
48 IN PVOID Base
49 );
50
51PVOID
52IMAGEAPI
53ImageRvaToVa(
54 IN PIMAGE_NT_HEADERS NtHeaders,
55 IN PVOID Base,
56 IN ULONG Rva,
57 IN OUT PIMAGE_SECTION_HEADER *LastRvaSection
58 );
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif // _IMAGEHLP_
65