Ignore:
Timestamp:
Oct 10, 2000, 7:14:09 PM (25 years ago)
Author:
sandervl
Message:

pe loader fixes, add system32\drivers dir during installation, add build date + time during kernel32 load

File:
1 edited

Legend:

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

    r4422 r4474  
    1 /* $Id: winimagepeldr.h,v 1.5 2000-10-04 19:36:25 sandervl Exp $ */
     1/* $Id: winimagepeldr.h,v 1.6 2000-10-10 17:14:09 sandervl Exp $ */
    22
    33/*
     
    2222
    2323//SvL: To load a dll/exe for i.e. getting a single resource (GetVersionSize/Resource)
    24 #define REAL_LOAD               0
    25 #define RSRC_LOAD               1
     24#define FLAG_PELDR_LOADASDATAFILE       1  //also implies FLAG_PELDR_SKIPIMPORTS
     25#define FLAG_PELDR_SKIPIMPORTS          2
    2626
    2727//SvL: Amount of memory the peldr dll reserves for win32 exes without fixups
     
    7575{
    7676public:
    77          Win32PeLdrImage(char *szFileName, BOOL isExe, int loadtype = REAL_LOAD);
     77         Win32PeLdrImage(char *szFileName, BOOL isExe);
    7878virtual ~Win32PeLdrImage();
    7979
     
    9393    //Returns required OS version for this image
    9494    virtual ULONG getVersion();
     95
     96        //tell loader to only process resources and ignore the rest
     97        void  setLoadAsDataFile()     { dwFlags |= FLAG_PELDR_LOADASDATAFILE; };
     98        void  disableImportHandling() { dwFlags |= FLAG_PELDR_SKIPIMPORTS; };
    9599
    96100        //commits image page(s) when an access violation exception is dispatched
     
    137141        Section               section[MAX_SECTION];
    138142
    139         ULONG                 loadType;
     143        //internal flags (see FLAGS_PELDR_*)
     144        DWORD                 dwFlags;
    140145
    141146        HFILE                 hFile;
Note: See TracChangeset for help on using the changeset viewer.