Ignore:
Timestamp:
Nov 10, 1999, 2:45:38 AM (26 years ago)
Author:
bird
Message:

Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.

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:57 bird Exp $
     1/* $Id: pe2lx.h,v 1.6 1999-11-10 01:45:33 bird Exp $
    22 *
    33 * Pe2Lx class declarations. Ring 0 and Ring 3
     
    1818*******************************************************************************/
    1919/*
    20  * Misc
    21  */
    22 #define PAGESIZE                    0x1000
    23 
    24 /*
    2520 * BufferedRVAReader config
    2621 */
    2722#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          0x42000000UL
    34 #define ERROR_INITMETHOD_NOT_INITTIME       0x42000001UL
    35 #define ERROR_INTERNAL_PROCESSING_ERROR     0x42000002UL
    36 
    37 
    38 /*
    39  * Output macros.
    40  * Macros:          option   infolevel
    41  *      printIPE    -W1      Error
    42  *      printErr    -W1      Error
    43  *      printWar    -W2      Warning
    44  *      printInf    -W3      Info
    45  *      printInfA   -W4      InfoAll
    46  */
    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 )
    6423
    6524
     
    9756 * @approval    knut st. osmundsen
    9857 */
    99 class Pe2Lx
     58class Pe2Lx : public ModuleBase
    10059{
    10160public:
     
    11271
    11372    /** @cat public Helper methods */
    114     BOOL   queryIsModuleName(PCSZ pszFilename);
    11573    ULONG  querySizeOfLxFile();
    11674    VOID   dumpVirtualLxFile();
    117 
    11875
    11976private:
     
    165122    static VOID dumpSectionHeader(PIMAGE_SECTION_HEADER pSection);
    166123
    167     /** @cat static print method */
    168 public:
    169     static VOID printf(PCSZ pszFormat, ...);
    170 
    171124private:
    172125    /** @cat private data members - allways present.  */
    173     #ifdef DEBUG
    174     BOOL        fInitTime;              /* init time indicator (debug) */
    175     #endif
    176     SFN         hFile;                  /* filehandle */
    177     PSZ         pszFilename;            /* fullpath */
    178     PSZ         pszModuleName;          /* filename without extention. */
    179126    BOOL        fAllInOneObject;        /* The All-in-object fix will be or is applied. */
    180127    PLXOBJECT   paObjects;              /* Pointer to object array. */
     
    241188        ULONG flFlags;                      /* equivalent object flags */
    242189    } paSecChars2Flags[];
    243 
    244 public:
    245     static ULONG ulInfoLevel;                    /* Current output message detail level. */
    246     enum {Quiet, Error, Warning, Info, InfoAll}; /* Output message detail levels. */
    247190};
    248191
Note: See TracChangeset for help on using the changeset viewer.