Changeset 4750 for trunk/tools/common/kFileLX.h
- Timestamp:
- Dec 4, 2000, 9:48:09 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kFileLX.h
r4129 r4750 1 /* $Id: kFileLX.h,v 1. 2 2000-08-31 03:00:13bird Exp $1 /* $Id: kFileLX.h,v 1.3 2000-12-04 08:48:09 bird Exp $ 2 2 * 3 3 * kFileLX - Linear Executable file reader. … … 15 15 16 16 17 class kFileLX : public kFileFormatBase 17 class kFileLX : public kFileFormatBase/*, public kPageI*/ 18 18 { 19 19 protected: 20 PVOID pvBase; 21 ULONG offLXHdr; 22 struct e32_exe * pe32; 23 struct o32_obj * paObject; 20 PVOID pvBase; /* Pointer to filemapping. */ 21 ULONG cbFile; /* Size of filemapping. */ 22 ULONG offLXHdr; /* Offset of the LX header. */ 23 struct e32_exe * pe32; /* Pointer to the exe header within the filemapping. */ 24 struct o32_obj * paObject; /* Pointer to the objecttable. */ 25 struct o32_map * paMap; /* Pointer to page map table. */ 24 26 25 27 BOOL queryExportName(int iOrdinal, char *pszBuffer); … … 37 39 int getObjectCount(); 38 40 41 #if 0 42 /** @cat Get and put page methods. (the first ones are generic) */ 43 BOOL getPage(char *pachPage, ULONG ulAddress); 44 BOOL getPage(char *pachPage, int iObject, int offObject); 45 BOOL putPage(const char *pachPage, ULONG ulAddress); 46 BOOL putPage(const char *pachPage, int iObject, int offObject); 39 47 48 BOOL getPageLX(char *pachPage, int iObject, int iPage); 49 BOOL getPageLX(char *pachPage, int iPage); 50 BOOL putPageLX(const char *pachPage, int iObject, int iPage); 51 BOOL putPageLX(const char *pachPage, int iPage); 52 53 /** @cat Compression and expansion methods compatible with exepack:1 and exepack:2. */ 54 static BOOL expandPage1(char *pachPage, const char * pachSrcPage, int cchSrcPage); 55 static BOOL expandPage2(char *pachPage, const char * pachSrcPage, int cchSrcPage); 56 static int compressPage1(char *pachPage, const char * pachSrcPage); 57 static int compressPage2(char *pachPage, const char * pachSrcPage); 58 #endif 40 59 }; 41 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.