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/include/winimage.h

    r10 r281  
    1 /* $Id: winimage.h,v 1.2 1999-05-27 15:17:59 phaller Exp $ */
     1/* $Id: winimage.h,v 1.3 1999-07-07 08:11:09 sandervl Exp $ */
    22
    33/*
     
    124124        int   getVersionId()       { return VersionId; };
    125125
     126        void  setEntryPoint(ULONG startAddress) { entryPoint = startAddress; };
     127
     128        void  setTLSAddress(LPVOID dwTlsAddress)        { tlsAddress = dwTlsAddress; };
     129        void  setTLSIndexAddr(LPDWORD dwTlsIndexAddr)   { tlsIndexAddr = dwTlsIndexAddr; };
     130        void  setTLSInitSize(ULONG dwTlsSize)           { tlsInitSize = dwTlsSize; };
     131        void  setTLSTotalSize(ULONG dwTlsSize)          { tlsTotalSize = dwTlsSize; };
     132        void  setTLSCallBackAddr(PIMAGE_TLS_CALLBACK *dwTlsCallBackAddr)       
     133        {
     134           tlsCallBackAddr = dwTlsCallBackAddr;
     135        };
     136
     137        void  tlsAttachThread();        //setup TLS structures for new thread
     138        void  tlsDetachThread();        //destroy TLS structures
     139
    126140protected:
     141        void tlsAlloc();                //Allocate TLS index for this module
     142        void tlsDelete();               //Destroy TLS index for this module
     143
    127144        void StoreImportByOrd(Win32Dll *WinDll, ULONG ordinal, ULONG impaddr);
    128145        void StoreImportByName(Win32Dll *WinDll, char *impname, ULONG impaddr);
     
    177194
    178195        BOOL                  fNativePEImage;
     196
     197        LPVOID                  tlsAddress;             //address of TLS data
     198        LPDWORD                 tlsIndexAddr;           //address of DWORD that receives the TLS index
     199        ULONG                   tlsInitSize;            //size of initialized TLS memory block
     200        ULONG                   tlsTotalSize;           //size of TLS memory block
     201        PIMAGE_TLS_CALLBACK    *tlsCallBackAddr;        //ptr to TLS callback array
     202        ULONG                   tlsIndex;               //module TLS index
     203
    179204private:
    180205
Note: See TracChangeset for help on using the changeset viewer.