3 Copyright (c) Alex Ionescu. All rights reserved.
11 Type definitions for the Loader.
15 Alex Ionescu (alex.ionescu@reactos.com) 06-Oct-2004
28 // Resource Type Levels
30 #define RESOURCE_TYPE_LEVEL 0
31 #define RESOURCE_NAME_LEVEL 1
32 #define RESOURCE_LANGUAGE_LEVEL 2
33 #define RESOURCE_DATA_LEVEL 3
36 // Loader Data Table Entry Flags
38 #define LDRP_STATIC_LINK 0x00000002
39 #define LDRP_IMAGE_DLL 0x00000004
40 #define LDRP_LOAD_IN_PROGRESS 0x00001000
41 #define LDRP_UNLOAD_IN_PROGRESS 0x00002000
42 #define LDRP_ENTRY_PROCESSED 0x00004000
43 #define LDRP_ENTRY_INSERTED 0x00008000
44 #define LDRP_CURRENT_LOAD 0x00010000
45 #define LDRP_FAILED_BUILTIN_LOAD 0x00020000
46 #define LDRP_DONT_CALL_FOR_THREADS 0x00040000
47 #define LDRP_PROCESS_ATTACH_CALLED 0x00080000
48 #define LDRP_DEBUG_SYMBOLS_LOADED 0x00100000
49 #define LDRP_IMAGE_NOT_AT_BASE 0x00200000
50 #define LDRP_COR_IMAGE 0x00400000
51 #define LDR_COR_OWNS_UNMAP 0x00800000
52 #define LDRP_REDIRECTED 0x10000000
55 // Loader Data stored in the PEB
57 typedef struct _PEB_LDR_DATA
62 LIST_ENTRY InLoadOrderModuleList
;
63 LIST_ENTRY InMemoryOrderModuleList
;
64 LIST_ENTRY InInitializationOrderModuleList
;
65 PVOID EntryInProgress
;
66 } PEB_LDR_DATA
, *PPEB_LDR_DATA
;
69 // Loader Data Table Entry
71 typedef struct _LDR_DATA_TABLE_ENTRY
73 LIST_ENTRY InLoadOrderModuleList
;
74 LIST_ENTRY InMemoryOrderModuleList
;
75 LIST_ENTRY InInitializationOrderModuleList
;
79 UNICODE_STRING FullDllName
;
80 UNICODE_STRING BaseDllName
;
95 PVOID EntryPointActivationContext
;
96 PVOID PatchInformation
;
97 } LDR_DATA_TABLE_ENTRY
, *PLDR_DATA_TABLE_ENTRY
;
100 // Loader Resource Information
102 typedef struct _LDR_RESOURCE_INFO
107 } LDR_RESOURCE_INFO
, *PLDR_RESOURCE_INFO
;