Changeset 111 for trunk/src/kernel32/winexe.cpp
- Timestamp:
- Jun 17, 1999, 8:22:43 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winexe.cpp
r99 r111 1 /* $Id: winexe.cpp,v 1. 3 1999-06-10 19:09:04phaller Exp $ */1 /* $Id: winexe.cpp,v 1.4 1999-06-17 18:21:43 phaller Exp $ */ 2 2 3 3 /* … … 30 30 #include "pefile.h" 31 31 #include "cio.h" 32 #include "console2.h" 32 33 34 // PH: to soothe the compiler 35 #define BY_HANDLE_FILE_INFORMATION void 36 #define LPFILETIME void* 37 #define OFSTRUCT void 38 39 #include "console.h" 40 #include "handlemanager.h" 41 33 42 34 43 Win32Exe *WinExe = NULL; … … 36 45 //****************************************************************************** 37 46 //****************************************************************************** 38 Win32Exe::Win32Exe(char *szFileName) : Win32Image(szFileName), fConsoleApp(FALSE), 39 47 Win32Exe::Win32Exe(char *szFileName) : Win32Image(szFileName), fConsoleApp(FALSE), 48 cmdline(NULL), OS2InstanceHandle(-1) 40 49 { 41 50 fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI); … … 45 54 46 55 HMInitialize(); /* store standard handles within HandleManager */ 47 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n")); 56 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n")); 48 57 if(fConsoleApp) { 49 58 dprintf(("Console application!\n")); 50 59 51 APIRET rc = ConsoleInit();/* initialize console subsystem */52 53 60 APIRET rc = iConsoleInit(); /* initialize console subsystem */ 61 if (rc != NO_ERROR) /* check for errors */ 62 dprintf(("KERNEL32:Win32Image:Init ConsoleInit failed with %u.\n", rc)); 54 63 } 55 64 } … … 57 66 //****************************************************************************** 58 67 Win32Exe::Win32Exe(HINSTANCE hinstance, int NameTableId, int Win32TableId) : 59 60 68 Win32Image(hinstance, NameTableId, Win32TableId), 69 fConsoleApp(FALSE), cmdline(NULL), OS2InstanceHandle(-1) 61 70 { 62 71 HMInitialize(); /* store standard handles within HandleManager */ 63 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n")); 72 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n")); 64 73 65 74 if(GET_CONSOLE(Win32TableId) == 1) {//console app 66 75 dprintf(("Console application!\n")); 67 76 68 69 APIRET rc = ConsoleInit();/* initialize console subsystem */70 71 77 fConsoleApp = TRUE; 78 APIRET rc = iConsoleInit(); /* initialize console subsystem */ 79 if (rc != NO_ERROR) /* check for errors */ 80 dprintf(("KERNEL32:Win32Image:Init ConsoleInit failed with %u.\n", rc)); 72 81 } 73 82 WinExe = this; … … 85 94 { 86 95 if(getenv("WIN32_IOPL2")) { 87 96 io_init1(); 88 97 } 89 98 dprintf(("Start executable %X\n", WinExe));
Note:
See TracChangeset
for help on using the changeset viewer.