2 * Main initialization code
14 #include "wine/winbase16.h"
21 #include "debugtools.h"
23 #include "loadorder.h"
25 DEFAULT_DEBUG_CHANNEL(server
);
27 /***********************************************************************
28 * Main initialisation routine
30 BOOL
MAIN_MainInit(void)
34 /* Load the configuration file */
35 if (!PROFILE_LoadWineIni()) return FALSE
;
37 /* Initialise DOS drives */
38 if (!DRIVE_Init()) return FALSE
;
40 /* Initialise DOS directories */
41 if (!DIR_Init()) return FALSE
;
43 /* Registry initialisation */
46 /* Global boot finished, the rest is process-local */
47 CLIENT_BootDone( TRACE_ON(server
) );
49 /* Initialize module loadorder */
50 if (!MODULE_InitLoadOrder()) return FALSE
;
52 /* Initialize relay code */
53 if (!RELAY_Init()) return FALSE
;
59 /***********************************************************************
60 * ExitKernel16 (KERNEL.2)
62 * Clean-up everything and exit the Wine process.
65 void WINAPI
ExitKernel16( void )
67 /* Do the clean-up stuff */
70 TerminateProcess( GetCurrentProcess(), 0 );