Changeset 21941
- Timestamp:
- Jan 18, 2012, 11:30:59 AM (13 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/include/odin.h ¶
r21916 r21941 172 172 #endif 173 173 174 #ifdef __cplusplus 175 #define DEF_VAL(v) = v 176 #else 177 #define DEF_VAL(v) 178 #endif 179 174 180 #ifdef __GNUC__ 175 181 // __stdcall in GCC for OS/2 incorrectly mangles vararg functions; according to -
TabularUnified trunk/include/odinlx.h ¶
r21916 r21941 29 29 typedef int (* WIN32API WINMAIN)(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nShowCmd); 30 30 31 #ifdef __cplusplus32 33 31 //****************************************************************************** 34 32 //Create LX Dll object and send process attach message … … 47 45 DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint, 48 46 PVOID pResData, 49 DWORD MajorImageVersion = ODINNT_MAJOR_VERSION, 50 DWORD MinorImageVersion = ODINNT_MINOR_VERSION, 51 DWORD Subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI); 52 #else 53 54 DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint, 55 PVOID pResData, 56 DWORD MajorImageVersion, 57 DWORD MinorImageVersion, 58 DWORD Subsystem) ; 59 60 #endif 47 DWORD MajorImageVersion DEF_VAL(ODINNT_MAJOR_VERSION), 48 DWORD MinorImageVersion DEF_VAL(ODINNT_MINOR_VERSION), 49 DWORD Subsystem DEF_VAL(IMAGE_SUBSYSTEM_WINDOWS_CUI)); 61 50 62 51 //****************************************************************************** -
TabularUnified trunk/include/wprocess.h ¶
r21916 r21941 40 40 // Set up the TEB structure of the CURRENT (!) thread 41 41 //****************************************************************************** 42 BOOL WIN32API InitializeThread(TEB *teb, BOOL fMainThread = FALSE);42 BOOL WIN32API InitializeThread(TEB *teb, BOOL fMainThread DEF_VAL(FALSE)); 43 43 44 44 void WIN32API DestroyTEB(TEB *teb); … … 51 51 //NOTE: This is not done for Odin32 applications (LX), unless 52 52 // fForceSwitch is TRUE) 53 USHORT WIN32API SetWin32TIB(BOOL fForceSwitch = TIB_SWITCH_DEFAULT);53 USHORT WIN32API SetWin32TIB(BOOL fForceSwitch DEF_VAL(TIB_SWITCH_DEFAULT)); 54 54 void WIN32API RestoreOS2TIB(); 55 55
Note:
See TracChangeset
for help on using the changeset viewer.