| 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 | Module Name: |
| 10 | |
| 11 | imagehlp.h |
| 12 | |
| 13 | Abstract: |
| 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 |
| 31 | extern "C" { |
| 32 | #endif |
| 33 | |
| 34 | #define IMAGEAPI __stdcall |
| 35 | |
| 36 | PIMAGE_NT_HEADERS |
| 37 | IMAGEAPI |
| 38 | CheckSumMappedFile ( |
| 39 | PVOID BaseAddress, |
| 40 | DWORD FileLength, |
| 41 | PDWORD , |
| 42 | PDWORD CheckSum |
| 43 | ); |
| 44 | |
| 45 | PIMAGE_NT_HEADERS |
| 46 | IMAGEAPI |
| 47 | ( |
| 48 | IN PVOID Base |
| 49 | ); |
| 50 | |
| 51 | PVOID |
| 52 | IMAGEAPI |
| 53 | ImageRvaToVa( |
| 54 | IN PIMAGE_NT_HEADERS , |
| 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 | |