Changeset 5841 for trunk/src/kernel32/winimagepeldr_new.h
- Timestamp:
- May 30, 2001, 8:33:00 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr_new.h
r5837 r5841 1 /* $Id: winimagepeldr_new.h,v 1. 1 2001-05-30 08:23:22 sandervlExp $ */1 /* $Id: winimagepeldr_new.h,v 1.2 2001-05-30 18:32:15 phaller Exp $ */ 2 2 3 3 /* … … 14 14 15 15 #include <winimagebase.h> 16 17 18 // 2001-05-30 PH 19 // to enable sanity checks for the new loader code, 20 // enable this define. 21 //#define VERIFY_LOADER 22 16 23 17 24 #define SINGLE_PAGE 0 //commit single page … … 55 62 } Section; 56 63 64 65 #ifdef VERIFY_LOADER 66 typedef struct { 67 ULONG virtaddr; 68 ULONG ordinal; 69 ULONG nlength; 70 char name[4]; 71 } NameExport; 72 73 typedef struct { 74 ULONG virtaddr; 75 ULONG ordinal; 76 } OrdExport; 77 #endif 78 57 79 class Win32DllBase; 58 80 class Win32MemMap; … … 77 99 virtual ULONG getApi(char *name); 78 100 virtual ULONG getApi(int ordinal); 101 102 #ifdef VERIFY_LOADER 103 virtual ULONG new_getApi(char *name); 104 virtual ULONG new_getApi(int ordinal); 105 virtual ULONG old_getApi(char *name); 106 virtual ULONG old_getApi(int ordinal); 107 #endif 79 108 80 109 virtual ULONG getImageSize(); … … 115 144 BOOL AddForwarder(ULONG virtaddr, char *apiname, ULONG ordinal); 116 145 117 146 Win32DllBase *loadDll(char *pszCurModule); 118 147 119 148 IMAGE_OPTIONAL_HEADER oh; … … 122 151 ULONG nrNameExports, nameExportSize; 123 152 ULONG nrOrdExports; 153 154 #ifdef VERIFY_LOADER 155 NameExport *nameexports, *curnameexport; 156 OrdExport *ordexports, *curordexport; 157 #endif 124 158 125 159 ULONG nrsections, imageSize, imageVirtBase, imageVirtEnd;
Note:
See TracChangeset
for help on using the changeset viewer.