Ignore:
Timestamp:
May 30, 2001, 8:33:00 PM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimagepeldr_new.h

    r5837 r5841  
    1 /* $Id: winimagepeldr_new.h,v 1.1 2001-05-30 08:23:22 sandervl Exp $ */
     1/* $Id: winimagepeldr_new.h,v 1.2 2001-05-30 18:32:15 phaller Exp $ */
    22
    33/*
     
    1414
    1515#include <winimagebase.h>
     16
     17
     18// 2001-05-30 PH
     19// to enable sanity checks for the new loader code,
     20// enable this define.
     21//#define VERIFY_LOADER
     22
    1623
    1724#define SINGLE_PAGE             0  //commit single page
     
    5562} Section;
    5663
     64
     65#ifdef VERIFY_LOADER
     66typedef struct {
     67  ULONG  virtaddr;
     68  ULONG  ordinal;
     69  ULONG  nlength;
     70  char   name[4];
     71} NameExport;
     72
     73typedef struct {
     74  ULONG  virtaddr;
     75  ULONG  ordinal;
     76} OrdExport;
     77#endif
     78
    5779class Win32DllBase;
    5880class Win32MemMap;
     
    7799    virtual ULONG getApi(char *name);
    78100    virtual ULONG getApi(int ordinal);
     101
     102#ifdef VERIFY_LOADER
     103    virtual ULONG new_getApi(char *name);
     104    virtual ULONG new_getApi(int ordinal);
     105    virtual ULONG old_getApi(char *name);
     106    virtual ULONG old_getApi(int ordinal);
     107#endif
    79108
    80109    virtual ULONG getImageSize();
     
    115144        BOOL  AddForwarder(ULONG virtaddr, char *apiname, ULONG ordinal);
    116145
    117         Win32DllBase *loadDll(char *pszCurModule);
     146Win32DllBase *loadDll(char *pszCurModule);
    118147
    119148        IMAGE_OPTIONAL_HEADER oh;
     
    122151        ULONG                 nrNameExports, nameExportSize;
    123152        ULONG                 nrOrdExports;
     153
     154#ifdef VERIFY_LOADER
     155        NameExport           *nameexports, *curnameexport;
     156        OrdExport            *ordexports, *curordexport;
     157#endif
    124158
    125159        ULONG                 nrsections, imageSize, imageVirtBase, imageVirtEnd;
Note: See TracChangeset for help on using the changeset viewer.