-
Notifications
You must be signed in to change notification settings - Fork 1
/
ldr.h
41 lines (35 loc) · 856 Bytes
/
ldr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* WehnTrust
*
* Copyright (c) 2004, Wehnus.
*/
#ifndef _WEHNTRUST_DRIVER_LDR_H
#define _WEHNTRUST_DRIVER_LDR_H
NTSTATUS LdrRelocateImage(
IN PVOID ImageBase,
IN ULONG ImageSize,
IN ULONG LoadImageBase);
NTSTATUS LdrRelocateRawImage(
IN PVOID RandomizedImageBase,
IN PVOID RawImageBase,
IN ULONG RawImageSize);
NTSTATUS LdrRelocateTls(
IN PVOID OldImageBase,
IN PVOID RandomizedImageBase,
IN PVOID RawImageBase,
IN ULONG RawImageSize);
NTSTATUS LdrGetProcAddress(
IN ULONG_PTR ImageBase,
IN ULONG ImageSize,
IN PSZ SymbolName,
OUT PVOID *SymbolAddress);
BOOLEAN LdrCheckImportedDll(
IN ULONG_PTR ImageBase,
IN ULONG ImageSize,
IN PIMAGE_NT_HEADERS NtHeader,
IN PSZ DllName);
BOOLEAN LdrCheckIncompatibleSections(
IN ULONG_PTR ImageBase,
IN ULONG ImageSize,
IN PIMAGE_NT_HEADERS NtHeader);
#endif