2 * Main initialization code
12 #include "wine/winbase16.h"
17 #include "debugtools.h"
19 #include "loadorder.h"
21 DEFAULT_DEBUG_CHANNEL(server
);
23 /***********************************************************************
24 * Main initialisation routine
26 BOOL
MAIN_MainInit(void)
30 /* Load the configuration file */
31 if (!PROFILE_LoadWineIni()) return FALSE
;
33 /* Initialise DOS drives */
34 if (!DRIVE_Init()) return FALSE
;
36 /* Initialise DOS directories */
37 if (!DIR_Init()) return FALSE
;
39 /* Registry initialisation */
42 /* Global boot finished, the rest is process-local */
43 CLIENT_BootDone( TRACE_ON(server
) );
45 /* Initialize module loadorder */
46 if (!MODULE_InitLoadOrder()) return FALSE
;
48 /* Initialize relay code */
49 if (!RELAY_Init()) return FALSE
;
55 /***********************************************************************
56 * ExitKernel16 (KERNEL.2)
58 * Clean-up everything and exit the Wine process.
61 void WINAPI
ExitKernel16( void )
63 /* Do the clean-up stuff */
66 TerminateProcess( GetCurrentProcess(), 0 );