Ignore:
Timestamp:
Mar 31, 2003, 4:53:32 AM (23 years ago)
Author:
bird
Message:

Cleaned up Customb Dll handling, pluss exclude dll feature. Added support for all object RW.

Location:
trunk/src/win32k/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/options.h

    r9954 r9957  
    1 /* $Id: options.h,v 1.25 2003-03-31 01:22:45 bird Exp $
     1/* $Id: options.h,v 1.26 2003-03-31 02:53:31 bird Exp $
    22 *
    33 * Options.
     
    9292            FLAGS_PE_PE,            /* fPE           */     \
    9393            FLAGS_PEOO_FORCED,      /* fPEOneObject  */     \
     94            FALSE,                  /* fAllRWObjects */     \
     95            FALSE,                  /* fSkipFixups   */     \
    9496            INFOLEVEL_QUIET,        /* ulInfoLevel   */     \
    9597            FALSE,                  /* fElf          */     \
     
    98100            TRUE,                   /* fJava         */     \
    99101            FALSE,                  /* fNoLoader     */     \
    100             FALSE,                  /* fSkipFixups   */     \
    101102            NULL,                   /* pszCustomDll  */     \
    102103            NULL,                   /* pszCustomExports  */ \
     
    121122#define isPEOneObjectForced()       (options.fPEOneObject == FLAGS_PEOO_FORCED)
    122123
     124#define isAllRWObjectsEnabled()     (options.fAllRWObjects)
     125#define isAllRWObjectsDisabled()    (!options.fAllRWObjects)
     126
    123127#define isELFDisabled()             (!options.fElf)
    124128#define isELFEnabled()              (options.fElf)
     
    178182    ULONG       fPE;                    /* Flags set the type of conversion. */
    179183    ULONG       fPEOneObject;           /* All in one object. */
     184    ULONG       fAllRWObjects;          /* All objects are writable. */
     185    ULONG       fSkipFixups;            /* Base the image stripping of fixups. (Exe only please.) */
    180186    ULONG       ulInfoLevel;            /* Pe2Lx InfoLevel. */
    181187
     
    195201    ULONG       fNoLoader;              /* No loader stuff. !FIXME! We should import / functions even if this flag is set!!! */
    196202
    197     ULONG       fSkipFixups;
    198203    char *      pszCustomDll;           /* Pointer to custom odin dll name */
    199204    char *      pszCustomExports;       /* Pointer to custom export table */
  • trunk/src/win32k/include/pe2lx.h

    r9955 r9957  
    1 /* $Id: pe2lx.h,v 1.15 2003-03-31 01:23:14 bird Exp $
     1/* $Id: pe2lx.h,v 1.16 2003-03-31 02:53:32 bird Exp $
    22 *
    33 * Pe2Lx class declarations. Ring 0 and Ring 3
     
    110110    ULONG       addPageFixupEntry(BOOL fLast = FALSE);
    111111    ULONG       add32OffsetFixup(WORD offSource, ULONG ulTarget);
    112     #ifndef RING0
    113     ULONG       add32OrdImportFixup(WORD offSource, ULONG ulModuleOrdinal, ULONG ulFunctionOrdinal, PSZ pszModuleName);
    114     ULONG       add32NameImportFixup(WORD offSource, ULONG ulModuleOrdinal, PCSZ pszFnName, PSZ pszModuleName);
    115     #else
    116     ULONG       add32OrdImportFixup(WORD offSource, ULONG ulModuleOrdinal, ULONG ulFunctionOrdinal);
    117     ULONG       add32NameImportFixup(WORD offSource, ULONG ulModuleOrdinal, PCSZ pszFnName);
    118     #endif
     112    ULONG       add32OrdImportFixup(WORD offSource, ULONG ulModuleOrdinal, ULONG ulFunctionOrdinal, PCSZ pszModuleName);
     113    ULONG       add32NameImportFixup(WORD offSource, ULONG ulModuleOrdinal, PCSZ pszFnName, PCSZ pszModuleName);
    119114    ULONG       addModule(PCSZ pszModuleName, PULONG pulModuleOrdinal);
    120115    ULONG       addImportFunctionName(PCSZ pszFnName, PULONG poffFnName);
     
    140135    static BOOL setOdin32Path(const char *psz);
    141136    #ifndef RING0
    142     static BOOL isCustomDllExcluded(const char *pszModuleName);
     137    static BOOL isCustomDllExcluded(PCSZ pszModuleName);
    143138    #endif
    144139
Note: See TracChangeset for help on using the changeset viewer.