Bitdefender Hypervisor Memory Introspection
loader.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Bitdefender
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #ifndef _LOADER_H_
6 #define _LOADER_H_
7 
8 #include "introtypes.h"
9 
10 
11 #define LDR_FLAG_FIX_RELOCATIONS 0x00000001
12 #define LDR_FLAG_FIX_IMPORTS 0x00000002
13 
14 
15 //
16 // API
17 //
20  _In_ PBYTE RawPe,
21  _In_ DWORD RawSize,
22  _Out_ DWORD *VirtualSize,
23  _Out_ DWORD *EntryPoint
24  );
25 
28  _In_ PBYTE RawPe,
29  _In_ DWORD RawPeSize,
30  _In_ QWORD GuestVirtualAddress,
31  _Inout_ PBYTE LoadedPe,
32  _In_ DWORD VirtualPeSize,
33  _In_ DWORD Flags
34  );
35 
36 #endif // _LOADER_H
#define _Out_
Definition: intro_sal.h:22
#define _In_
Definition: intro_sal.h:21
int INTSTATUS
The status data type.
Definition: introstatus.h:24
#define _Inout_
Definition: intro_sal.h:20
uint8_t * PBYTE
Definition: intro_types.h:47
unsigned long long QWORD
Definition: intro_types.h:53
uint32_t DWORD
Definition: intro_types.h:49
INTSTATUS IntLdrLoadPEImage(PBYTE RawPe, DWORD RawPeSize, QWORD GuestVirtualAddress, PBYTE LoadedPe, DWORD VirtualPeSize, DWORD Flags)
Load the provided PE image at the provided guest virtual address, and return it in LoadedPe...
Definition: loader.c:670
INTSTATUS IntLdrGetImageSizeAndEntryPoint(PBYTE RawPe, DWORD RawSize, DWORD *VirtualSize, DWORD *EntryPoint)
Returns the entry point and the virtual size for the provided module.
Definition: loader.c:11