Changeset 550 for trunk/include/winimage.h
- Timestamp:
- Aug 18, 1999, 7:18:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/winimage.h
r544 r550 1 /* $Id: winimage.h,v 1. 5 1999-08-18 12:24:53sandervl Exp $ */1 /* $Id: winimage.h,v 1.6 1999-08-18 17:16:05 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #endif 28 28 29 #ifndef CCHMAXPATH 30 #define CCHMAXPATH 260 31 #endif 29 32 30 33 //SvL: Amount of memory the peldr dll reserves for win32 exes without fixups … … 125 128 char *getFullPath() { return fullpath; }; 126 129 130 char *getModuleName() { return szModule; }; 131 127 132 HRSRC findResourceA(LPCSTR lpszName, LPSTR lpszType); 128 133 HRSRC findResourceW(LPWSTR lpszName, LPWSTR lpszType); … … 163 168 Section *findSectionByAddr(ULONG addr); 164 169 165 BOOL storeSections( );170 BOOL storeSections(char *win32file); 166 171 BOOL setMemFlags(); 167 172 BOOL setFixups(PIMAGE_BASE_RELOCATION prel); … … 182 187 Win32Resource *winres; 183 188 184 185 189 IMAGE_OPTIONAL_HEADER oh; 190 IMAGE_FILE_HEADER fh; 186 191 187 192 ULONG errorState, entryPoint; … … 193 198 ULONG nrsections, imageSize, imageVirtBase, imageVirtEnd; 194 199 //OS/2 virtual base address 195 ULONG baseAddress,realBaseAddress;200 ULONG realBaseAddress; 196 201 Section section[MAX_SECTION]; 197 202 198 203 char *szFileName, *fullpath; 204 char szModule[CCHMAXPATH]; 199 205 200 206 HINSTANCE hinstance; … … 226 232 extern ofstream fout; 227 233 234 //SvL: This structure is placed at the end of the first page of the image (header 235 // page), so we can determine the Win32Image pointer from a HINSTANCE variable 236 // (which is actually the address of the win32 module) 237 typedef struct 238 { 239 Win32Image *image; 240 ULONG magic; 241 } WINIMAGE_LOOKUP; 242 243 #define WINIMAGE_LOOKUPADDR(a) (WINIMAGE_LOOKUP *)((ULONG)a + PAGE_SIZE - sizeof(WINIMAGE_LOOKUP)) 244 228 245 #endif //__PE2LX__ 229 246
Note:
See TracChangeset
for help on using the changeset viewer.