Changeset 21737 for branches/gcc-kmk/src/kernel32/winexepeldr.cpp
- Timestamp:
- Oct 24, 2011, 9:23:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/winexepeldr.cpp
r21716 r21737 19 19 #include <string.h> 20 20 #include <stdlib.h> 21 #ifndef __GNUC__ 21 22 #include <iostream.h> 22 23 #include <fstream.h> 24 #endif 23 25 #include <misc.h> 24 26 #include <win32type.h> … … 53 55 //Called by ring 3 pe loader to create win32 executable 54 56 //PE.EXE command line options: 55 // /OPT:[x1=y,x2=z,..] 57 // /OPT:[x1=y,x2=z,..] 56 58 // x = CURDIR -> set current directory to y 57 59 // (not other options available at this time) 58 60 //****************************************************************************** 59 61 DWORD WIN32API CreateWin32PeLdrExe(char *szFileName, char *szCmdLine, 60 char *peoptions, 62 char *peoptions, 61 63 ULONG reservedMem, ULONG ulPEOffset, 62 64 BOOL fConsoleApp, BOOL fVioConsole, … … 118 120 free(szFullCmdLine); 119 121 120 //Init console before loading executable as dlls might want to print 122 //Init console before loading executable as dlls might want to print 121 123 //something on the console while being loaded 122 if(WinExe->isConsoleApp()) 124 if(WinExe->isConsoleApp()) 123 125 { 124 126 dprintf(("Console application!\n")); … … 142 144 } 143 145 OS2UnsetExceptionHandler(&exceptFrame); 144 146 145 147 #ifdef PROFILE 146 148 // Note: after this point, we might start collecting performance … … 150 152 ProfilerEnable(TRUE); 151 153 #endif /* PROFILE */ 152 153 154 155 154 156 WinExe->start(); 155 157
Note:
See TracChangeset
for help on using the changeset viewer.