Changeset 21916 for trunk/src/kernel32/winexepeldr.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/kernel32/winexepeldr.cpp
r10397 r21916 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> 25 27 #include <win32api.h> 26 #include <winexepeldr.h>28 #include "winexepeldr.h" 27 29 #include <wprocess.h> 28 30 #include <pefile.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 //****************************************************************************** 61 extern "C" 59 62 DWORD WIN32API CreateWin32PeLdrExe(char *szFileName, char *szCmdLine, 60 char *peoptions, 63 char *peoptions, 61 64 ULONG reservedMem, ULONG ulPEOffset, 62 65 BOOL fConsoleApp, BOOL fVioConsole, … … 118 121 free(szFullCmdLine); 119 122 120 //Init console before loading executable as dlls might want to print 123 //Init console before loading executable as dlls might want to print 121 124 //something on the console while being loaded 122 if(WinExe->isConsoleApp()) 125 if(WinExe->isConsoleApp()) 123 126 { 124 127 dprintf(("Console application!\n")); … … 142 145 } 143 146 OS2UnsetExceptionHandler(&exceptFrame); 144 147 145 148 #ifdef PROFILE 146 149 // Note: after this point, we might start collecting performance … … 150 153 ProfilerEnable(TRUE); 151 154 #endif /* PROFILE */ 152 153 155 156 154 157 WinExe->start(); 155 158
Note:
See TracChangeset
for help on using the changeset viewer.