Ignore:
Timestamp:
Jan 15, 2004, 11:39:15 AM (22 years ago)
Author:
sandervl
Message:

Loader updates

File:
1 edited

Legend:

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

    r9537 r10397  
    1 /* $Id: winimagepe2lx.h,v 1.9 2002-12-20 11:39:42 sandervl Exp $ */
     1/* $Id: winimagepe2lx.h,v 1.10 2004-01-15 10:39:13 sandervl Exp $ */
    22
    33/*
     
    4343    virtual DWORD   init();
    4444
    45     /** @cat Exports */
    46     virtual ULONG   getApi(char *name);
    47     virtual ULONG   getApi(int ordinal);
    48 
    4945    /** @cat Queries */
    5046    /** Get the OS/2 module handle.
     
    5652    ULONG           getSections();
    5753    ULONG           setSectionRVAs();
     54    ULONG           doResources();
     55    ULONG           doTLS();
     56    ULONG           doImports();
     57    Win32ImageBase *importsGetModule(const char *pszModName);
     58    Win32DllBase   *importsLoadModule(const char *pszModName);
     59    ULONG           importsByOrdinal(Win32ImageBase *pModule, unsigned uOrdinal, void **ppvAddr);
     60    ULONG           importsByName(Win32ImageBase *pModule, const char *pszSymName, void **ppvAddr);
    5861    VOID            cleanup();
    5962
     
    6164    /** @cat RVA -> pointer */
    6265    /* these should be moved to winimagebase some day... */
    63     PVOID           getPointerFromRVA(ULONG ulRVA);
     66    void *          getPointerFromRVA(ULONG ulRVA, BOOL fOverride = FALSE);
     67    ULONG           getRVAFromPointer(void *pv, BOOL fOverride = FALSE);
    6468    PVOID           getPointerFromPointer(PVOID pv);
    6569    LONG            getSectionIndexFromRVA(ULONG ulRVA);
    6670    BOOL            validateRealPointer(PVOID pv);
    6771
    68     PSECTION            paSections; /* Used by getPointerFromRVA and created by getSections and
    69                                      * setSectionRVAs. */
    70     WORD                cSections;  /* Count of entires in the section array (paSection) */
     72    /** Used by getPointerFromRVA and created by getSections and setSectionRVAs. */
     73    PSECTION            paSections;
     74    /** Count of entires in the section array (paSection) */
     75    int                 cSections;
    7176
    7277    /** @cat Misc */
    73     PIMAGE_NT_HEADERS   pNtHdrs;    /* Pointer to NT headers. */
    74     BOOL                fWin32k;    /* flag which indicates wether this is a Win32k loaded
    75                                      * module (TRUE) or and Pe2Lx module (FALSE). */
    76     HMODULE             hmod;       /* OS/2 handle of the module. */
    77     BOOL                fDll;       /* Set by Win32Pe2LxDll. */
     78    /** Pointer to NT headers. */
     79    PIMAGE_NT_HEADERS   pNtHdrs;
     80    /** Flag which indicates wether this is a Win32k loaded
     81     * module (TRUE) or and Pe2Lx module (FALSE). */
     82    BOOL                fWin32k;
     83    /** OS/2 handle of the module. */
     84    HMODULE             hmod;
     85    /** Set by Win32Pe2LxDll. */
     86    BOOL                fDll;
    7887};
    7988
Note: See TracChangeset for help on using the changeset viewer.