| * Emulator initialisation code |
| #include "wine/winbase16.h" |
| /*********************************************************************** |
| * Main loop of initial task |
| void wine_initial_task(void) |
| GetStartupInfoA( &info ); |
| if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL; |
| if ((instance = WinExec16( GetCommandLineA(), info.wShowWindow )) < 32) |
| MESSAGE( "%s: can't exec '%s': ", argv0, GetCommandLineA() ); |
| case 2: MESSAGE("file not found\n" ); break; |
| case 11: MESSAGE("invalid exe file\n" ); break; |
| default: MESSAGE("error=%d\n", instance ); break; |
| /* Start message loop for desktop window */ |
| while ( GetNumTasks16() > 1 && Callout.GetMessageA( &msg, 0, 0, 0 ) ) |
| Callout.TranslateMessage( &msg ); |
| Callout.DispatchMessageA( &msg ); |
| /********************************************************************** |
| int main( int argc, char *argv[] ) |
| PROCESS_InitWine( argc, argv ); |
| return 1; /* not reached */ |