Ignore:
Timestamp:
Apr 17, 2001, 2:26:28 AM (24 years ago)
Author:
bird
Message:

Second iteration of the kFile* classes and interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/kFileFormatBase.h

    r4358 r5531  
    1 /* $Id: kFileFormatBase.h,v 1.4 2000-10-02 04:01:39 bird Exp $
     1/* $Id: kFileFormatBase.h,v 1.5 2001-04-17 00:26:11 bird Exp $
    22 *
    33 * kFileFormatBase - Base class for kFile<format> classes.
     
    1515*   Defined Constants                                                         *
    1616******************************************************************************/
    17 #define MAXEXPORTNAME 256
    1817#define ORD_START_INTERNAL_FUNCTIONS 1200
    1918
     
    2625class kFile;
    2726
    28 /**
    29  * ExportEntry used by the findFirstExport/findNextExport functions
    30  */
    31 typedef struct _ExportEntry
    32 {
    33     unsigned long   ulOrdinal;
    34     char            achName[MAXEXPORTNAME];
    35     char            achIntName[MAXEXPORTNAME]; /* not used by PEFile */
    36 
    37     /* these don't apply for .DEF files. (should have a flag for that...) */
    38     unsigned long   offset;
    39     unsigned long   iObject;
    40 
    41     /* internal - do not use! */
    42     void          *pv;
    43 } EXPORTENTRY, *PEXPORTENTRY;
    44 
    4527
    4628/**
     
    5133{
    5234public:
    53     virtual BOOL  queryModuleName(char *pszBuffer) = 0;
    54     virtual BOOL  findFirstExport(PEXPORTENTRY pExport) = 0;
    55     virtual BOOL  findNextExport(PEXPORTENTRY pExport)  = 0;
    5635    virtual BOOL  isDef() const { return FALSE;}
    5736    virtual BOOL  isPe() const  { return FALSE;}
    5837    virtual BOOL  isLx() const  { return FALSE;}
    59 
    60     static void * readfile(const char *pszFilename);
    6138    virtual BOOL  dump(kFile *pOut);
    6239};
Note: See TracChangeset for help on using the changeset viewer.