Changeset 281 for trunk/include
- Timestamp:
- Jul 7, 1999, 10:11:58 AM (26 years ago)
- Location:
- trunk/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/os2sel.h
r223 r281 1 /* $Id: os2sel.h,v 1. 3 1999-06-26 18:24:22sandervl Exp $ */1 /* $Id: os2sel.h,v 1.4 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 /* 3 3 * … … 11 11 USHORT _System RestoreOS2FS(); 12 12 void _System SetFS(USHORT selector); 13 USHORT _System SetReturnFS(USHORT selector); 13 14 14 15 #endif //__OS2SEL_H__ -
trunk/include/versionos2.h
r10 r281 1 /* $Id: versionos2.h,v 1. 2 1999-05-27 15:17:59 phallerExp $ */1 /* $Id: versionos2.h,v 1.3 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 3 3 #ifndef __VERSIONOS2__H__ … … 19 19 * 20 20 */ 21 #define PE2LX_VERSION 221 #define PE2LX_VERSION 3 22 22 23 23 #ifndef SYSTEM -
trunk/include/win/thread.h
r125 r281 1 /* $Id: thread.h,v 1. 3 1999-06-19 17:58:50sandervl Exp $ */1 /* $Id: thread.h,v 1.4 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 3 3 /* … … 13 13 #include "winbase.h" 14 14 //#include "selectors.h" /* for SET_FS */ 15 16 #ifdef __WIN32OS2__ 17 #define TLS_MINIMUM_AVAILABLE 64 18 #endif 15 19 16 20 struct _PDB; … … 71 75 WORD thunk_ss; /* 94 Yet another 16-bit stack selector */ 72 76 WORD pad3; /* 96 */ 77 #ifdef __WIN32OS2__ 78 LPVOID tls_array[TLS_MINIMUM_AVAILABLE]; /* 98 Thread local storage */ 79 #else 73 80 LPVOID tls_array[64]; /* 98 Thread local storage */ 81 #endif 74 82 DWORD delta_priority; /* 198 Priority delta */ 75 83 DWORD unknown4[7]; /* 19c Unknown */ -
trunk/include/windll.h
r10 r281 1 /* $Id: windll.h,v 1. 2 1999-05-27 15:17:59 phallerExp $ */1 /* $Id: windll.h,v 1.3 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 3 3 /* … … 56 56 static Win32Dll *getFirst(); 57 57 58 //Send DLL_THREAD_ATTACH message to all dlls for a new thread 59 static void attachThreadToAllDlls(); 60 61 //Send DLL_THREAD_DETACH message to all dlls for thread that's about to die 62 static void detachThreadFromAllDlls(); 63 64 //Setup TLS structure for all dlls for a new thread 65 static void tlsAttachThreadToAllDlls(); 66 67 //Destroy TLS structure for all dlls for a thread that's about to die 68 static void tlsDetachThreadFromAllDlls(); 69 58 70 ULONG getApi(char *name); 59 71 ULONG getApi(int ordinal); -
trunk/include/winimage.h
r10 r281 1 /* $Id: winimage.h,v 1. 2 1999-05-27 15:17:59 phallerExp $ */1 /* $Id: winimage.h,v 1.3 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 3 3 /* … … 124 124 int getVersionId() { return VersionId; }; 125 125 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 126 140 protected: 141 void tlsAlloc(); //Allocate TLS index for this module 142 void tlsDelete(); //Destroy TLS index for this module 143 127 144 void StoreImportByOrd(Win32Dll *WinDll, ULONG ordinal, ULONG impaddr); 128 145 void StoreImportByName(Win32Dll *WinDll, char *impname, ULONG impaddr); … … 177 194 178 195 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 179 204 private: 180 205 -
trunk/include/wprocess.h
r130 r281 1 /* $Id: wprocess.h,v 1. 4 1999-06-20 12:46:34sandervl Exp $ */1 /* $Id: wprocess.h,v 1.5 1999-07-07 08:11:09 sandervl Exp $ */ 2 2 /* 3 3 * Process help functions … … 24 24 void DestroyTIB(); 25 25 26 void WIN32API RestoreOS2TIB();27 voidWIN32API SetWin32TIB();26 void WIN32API RestoreOS2TIB(); 27 USHORT WIN32API SetWin32TIB(); 28 28 29 29 extern BOOL fExeStarted; 30 30 31 //Flat pointer to thread TIB structure 32 extern DWORD *TIBFlatPtr; 33 31 34 #endif
Note:
See TracChangeset
for help on using the changeset viewer.