Changeset 4474 for trunk/src/kernel32/winimagepeldr.h
- Timestamp:
- Oct 10, 2000, 7:14:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.h
r4422 r4474 1 /* $Id: winimagepeldr.h,v 1. 5 2000-10-04 19:36:25sandervl Exp $ */1 /* $Id: winimagepeldr.h,v 1.6 2000-10-10 17:14:09 sandervl Exp $ */ 2 2 3 3 /* … … 22 22 23 23 //SvL: To load a dll/exe for i.e. getting a single resource (GetVersionSize/Resource) 24 #define REAL_LOAD 025 #define RSRC_LOAD 124 #define FLAG_PELDR_LOADASDATAFILE 1 //also implies FLAG_PELDR_SKIPIMPORTS 25 #define FLAG_PELDR_SKIPIMPORTS 2 26 26 27 27 //SvL: Amount of memory the peldr dll reserves for win32 exes without fixups … … 75 75 { 76 76 public: 77 Win32PeLdrImage(char *szFileName, BOOL isExe , int loadtype = REAL_LOAD);77 Win32PeLdrImage(char *szFileName, BOOL isExe); 78 78 virtual ~Win32PeLdrImage(); 79 79 … … 93 93 //Returns required OS version for this image 94 94 virtual ULONG getVersion(); 95 96 //tell loader to only process resources and ignore the rest 97 void setLoadAsDataFile() { dwFlags |= FLAG_PELDR_LOADASDATAFILE; }; 98 void disableImportHandling() { dwFlags |= FLAG_PELDR_SKIPIMPORTS; }; 95 99 96 100 //commits image page(s) when an access violation exception is dispatched … … 137 141 Section section[MAX_SECTION]; 138 142 139 ULONG loadType; 143 //internal flags (see FLAGS_PELDR_*) 144 DWORD dwFlags; 140 145 141 146 HFILE hFile;
Note:
See TracChangeset
for help on using the changeset viewer.