Changeset 544 for trunk/include/winimage.h
- Timestamp:
- Aug 18, 1999, 2:24:53 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/winimage.h
r463 r544 1 /* $Id: winimage.h,v 1. 4 1999-08-09 22:46:46 phallerExp $ */1 /* $Id: winimage.h,v 1.5 1999-08-18 12:24:53 sandervl Exp $ */ 2 2 3 3 /* … … 26 26 #define MAGIC_WINIMAGE 0x11223344 27 27 #endif 28 29 30 //SvL: Amount of memory the peldr dll reserves for win32 exes without fixups 31 //(most of them need to be loaded at 4 MB; except MS Office apps of course) 32 #define PELDR_RESERVEDMEMSIZE 16*1024*1024 33 28 34 29 35 #pragma pack(1) … … 45 51 #define SECTION_EXPORT 128 46 52 #define SECTION_DEBUG 256 53 #define SECTION_TLS 512 47 54 48 55 #define PAGE_SIZE 4096 … … 107 114 void OS2ImageInit(HINSTANCE hinstance, int NameTableId, int Win32TableId); 108 115 109 virtual BOOL init(); 116 //reservedMem is address of memory reserved in peldr.dll (allocated before 117 //any dlls are loaded, so that exes without fixups can be loaded at a low 118 //address) 119 virtual BOOL init(ULONG reservedMem); 110 120 111 121 ULONG getError() { return errorState; }; … … 148 158 149 159 void addSection(ULONG type, char *rawdata, ULONG rawsize, ULONG virtaddress, ULONG virtsize); 150 BOOL allocSections(); 151 BOOL allocFixedMem(); 160 BOOL allocSections(ULONG reservedMem); 161 BOOL allocFixedMem(ULONG reservedMem); 162 Section *findSection(ULONG type); 163 Section *findSectionByAddr(ULONG addr); 152 164 153 165 BOOL storeSections();
Note:
See TracChangeset
for help on using the changeset viewer.