Changeset 1678 for trunk/src/win32k/include/pe2lx.h
- Timestamp:
- Nov 10, 1999, 2:45:38 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/pe2lx.h
r1467 r1678 1 /* $Id: pe2lx.h,v 1. 5 1999-10-27 02:02:57bird Exp $1 /* $Id: pe2lx.h,v 1.6 1999-11-10 01:45:33 bird Exp $ 2 2 * 3 3 * Pe2Lx class declarations. Ring 0 and Ring 3 … … 18 18 *******************************************************************************/ 19 19 /* 20 * Misc21 */22 #define PAGESIZE 0x100023 24 /*25 20 * BufferedRVAReader config 26 21 */ 27 22 #define BUFFEREDRVAREADER_BUFFERSIZE PAGESIZE /* reader code assumes this size... */ 28 29 30 /*31 * Error definitions (used in addition to them in bseerr.h)32 */33 #define ERROR_FAILED_TO_ADD_OBJECT 0x42000000UL34 #define ERROR_INITMETHOD_NOT_INITTIME 0x42000001UL35 #define ERROR_INTERNAL_PROCESSING_ERROR 0x42000002UL36 37 38 /*39 * Output macros.40 * Macros: option infolevel41 * printIPE -W1 Error42 * printErr -W1 Error43 * printWar -W2 Warning44 * printInf -W3 Info45 * printInfA -W4 InfoAll46 */47 #define printIPE(a) (Pe2Lx::ulInfoLevel >= Pe2Lx::Error ? \48 Pe2Lx::printf("\nerror(%d:"__FUNCTION__"): !Internal Processing Error!\n\t", __LINE__), \49 Pe2Lx::printf a, \50 Pe2Lx::printf("\n") \51 : (void)0,(void)0,(void)0 )52 #define printErr(a) (Pe2Lx::ulInfoLevel >= Pe2Lx::Error ? \53 Pe2Lx::printf("error(%d:"__FUNCTION__"): ", __LINE__), \54 Pe2Lx::printf a \55 : (void)0,(void)0 )56 #define printWar(a) (Pe2Lx::ulInfoLevel >= Pe2Lx::Warning ? \57 Pe2Lx::printf("warning("__FUNCTION__"): "), \58 Pe2Lx::printf a \59 : (void)0,(void)0 )60 #define printInf(a) (Pe2Lx::ulInfoLevel >= Pe2Lx::Info ? \61 Pe2Lx::printf a : (void)0 )62 #define printInfA(a)(Pe2Lx::ulInfoLevel >= Pe2Lx::InfoAll ? \63 Pe2Lx::printf a : (void)0 )64 23 65 24 … … 97 56 * @approval knut st. osmundsen 98 57 */ 99 class Pe2Lx 58 class Pe2Lx : public ModuleBase 100 59 { 101 60 public: … … 112 71 113 72 /** @cat public Helper methods */ 114 BOOL queryIsModuleName(PCSZ pszFilename);115 73 ULONG querySizeOfLxFile(); 116 74 VOID dumpVirtualLxFile(); 117 118 75 119 76 private: … … 165 122 static VOID dumpSectionHeader(PIMAGE_SECTION_HEADER pSection); 166 123 167 /** @cat static print method */168 public:169 static VOID printf(PCSZ pszFormat, ...);170 171 124 private: 172 125 /** @cat private data members - allways present. */ 173 #ifdef DEBUG174 BOOL fInitTime; /* init time indicator (debug) */175 #endif176 SFN hFile; /* filehandle */177 PSZ pszFilename; /* fullpath */178 PSZ pszModuleName; /* filename without extention. */179 126 BOOL fAllInOneObject; /* The All-in-object fix will be or is applied. */ 180 127 PLXOBJECT paObjects; /* Pointer to object array. */ … … 241 188 ULONG flFlags; /* equivalent object flags */ 242 189 } paSecChars2Flags[]; 243 244 public:245 static ULONG ulInfoLevel; /* Current output message detail level. */246 enum {Quiet, Error, Warning, Info, InfoAll}; /* Output message detail levels. */247 190 }; 248 191
Note:
See TracChangeset
for help on using the changeset viewer.