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 | /*============================================================ |
9 | ** |
10 | ** CorImage.h |
11 | ** |
12 | ** IMAGEHLP routines so we can avoid early binding to that DLL. |
13 | ** |
14 | ===========================================================*/ |
15 | |
16 | #ifndef _CORIMAGE_H_ |
17 | #define _CORIMAGE_H_ |
18 | |
19 | #include <daccess.h> |
20 | |
21 | #ifdef __cplusplus |
22 | extern "C" { |
23 | #endif |
24 | |
25 | IMAGE_NT_HEADERS *(VOID *pvBase, |
26 | ULONG FileLength); |
27 | |
28 | PIMAGE_SECTION_HEADER |
29 | Cor_RtlImageRvaToSection(PTR_IMAGE_NT_HEADERS , |
30 | ULONG Rva, |
31 | ULONG FileLength); |
32 | |
33 | PIMAGE_SECTION_HEADER |
34 | Cor_RtlImageRvaRangeToSection(PTR_IMAGE_NT_HEADERS , |
35 | ULONG Rva, |
36 | ULONG Range, |
37 | ULONG FileLength); |
38 | |
39 | DWORD Cor_RtlImageRvaToOffset(PTR_IMAGE_NT_HEADERS , |
40 | ULONG Rva, |
41 | ULONG FileLength); |
42 | |
43 | PBYTE Cor_RtlImageRvaToVa(PTR_IMAGE_NT_HEADERS , |
44 | PBYTE Base, |
45 | ULONG Rva, |
46 | ULONG FileLength); |
47 | |
48 | PBYTE Cor_RtlImageDirToVa(PTR_IMAGE_NT_HEADERS , |
49 | PBYTE Base, |
50 | UINT DirIndex, |
51 | ULONG FileLength); |
52 | |
53 | PBYTE Cor_RtlImageRvaToVa32(PTR_IMAGE_NT_HEADERS32 , |
54 | PBYTE Base, |
55 | ULONG Rva, |
56 | ULONG FileLength); |
57 | |
58 | PBYTE Cor_RtlImageRvaToVa64(PTR_IMAGE_NT_HEADERS64 , |
59 | PBYTE Base, |
60 | ULONG Rva, |
61 | ULONG FileLength); |
62 | |
63 | #ifdef __cplusplus |
64 | } |
65 | #endif |
66 | |
67 | #endif // _CORIMAGE_H_ |
68 | |