Changeset 281 for trunk/src/pe2lx/LX.H


Ignore:
Timestamp:
Jul 7, 1999, 10:11:58 AM (26 years ago)
Author:
sandervl
Message:

Major changes in PE2LX/KERNEL32 for TLS support. DLL VERSION INCREASED TO 3 AS THIS CHANGE MAKES IT INCOMPATIBLE WITH APPS CONVERTED WITH PREVIOUS VERSION OF PE2LX (OR WIN32K)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pe2lx/LX.H

    r97 r281  
    1 /* $Id: LX.H,v 1.3 1999-06-10 17:08:51 phaller Exp $ */
     1/* $Id: LX.H,v 1.4 1999-07-07 08:11:11 sandervl Exp $ */
    22
    33/*
     
    145145               ~LXHeader();
    146146
    147        void SetEntryAddress(int address);
     147       void SetEntryAddress(int address);       //relative
     148
     149       void SetEntryPoint(int address) { EntryAddress = address; }; //absolute virtual address
     150
    148151       void SetExeType(BOOL IsEXE);
    149152       void SetNoFixups();
     
    159162       BOOL SaveNewExeFile(char *filename);
    160163       void SetModuleType(int type);
    161        void AddOff32Fixup(int address);
     164       void AddOff32Fixup(int address, BOOL fLookatStartupCode = FALSE);
    162165       void SetNrOff32Fixups(int nr);
    163166       void AddNameExport(int address, char *name, int ordinal);
     
    178181       //SvL: 18-7-'98: Set version resource id
    179182       void SetVersionResourceId(int id) { VersionResourceId = id; };
     183
     184       void SetTLSAddress(ULONG dwTlsAddress)           { tlsAddress = dwTlsAddress; };
     185       void SetTLSIndexAddress(ULONG dwTlsIndexAddr)    { tlsIndexAddr = dwTlsIndexAddr; };
     186       void SetTLSInitSize(ULONG dwTlsSize)             { tlsInitSize = dwTlsSize; };
     187       void SetTLSTotalSize(ULONG dwTlsSize)            { tlsTotalSize = dwTlsSize; };
     188       void SetTLSCallBackAddr(ULONG dwTlsCallBackAddr) { tlsCallBackAddr = dwTlsCallBackAddr; };
     189
     190       void AddExtraFixups();
    180191
    181192private:
     
    240251  ULONG          VersionResourceId;
    241252
    242   unsigned char *szTIBFix;
    243   int        TIBSize;
    244   int        TIBOffEntry;
    245   int        TIBOffCall;
    246   int            TIBOffName;
    247   int            TIBOffKerImport;
    248   //SvL: 18-7-'98: Internal pe2lx version and version resource id offsets
    249   int            TIBOffPe2lxVer;
    250   int            TIBOffVerResId;
     253  ULONG         tlsAddress;             //address of TLS data
     254  ULONG         tlsIndexAddr;           //address of DWORD that receives the TLS index
     255  ULONG         tlsInitSize;            //size of initialized TLS memory block
     256  ULONG         tlsTotalSize;           //size of TLS memory block
     257  ULONG         tlsCallBackAddr;        //ptr to TLS callback array
    251258};
    252259
Note: See TracChangeset for help on using the changeset viewer.