2 * Main initialization code
12 #include "wine/winbase16.h"
18 #include "debugtools.h"
20 #include "loadorder.h"
22 DEFAULT_DEBUG_CHANNEL(server
);
24 /***********************************************************************
25 * Main initialisation routine
27 BOOL
MAIN_MainInit(void)
31 /* Load the configuration file */
32 if (!PROFILE_LoadWineIni()) return FALSE
;
34 /* Initialise DOS drives */
35 if (!DRIVE_Init()) return FALSE
;
37 /* Initialise DOS directories */
38 if (!DIR_Init()) return FALSE
;
40 /* Registry initialisation */
43 /* Global boot finished, the rest is process-local */
44 CLIENT_BootDone( TRACE_ON(server
) );
46 /* Initialize module loadorder */
47 if (!MODULE_InitLoadOrder()) return FALSE
;
49 /* Initialize relay code */
50 if (!RELAY_Init()) return FALSE
;
56 /***********************************************************************
57 * ExitKernel16 (KERNEL.2)
59 * Clean-up everything and exit the Wine process.
62 void WINAPI
ExitKernel16( void )
64 /* Do the clean-up stuff */
67 TerminateProcess( GetCurrentProcess(), 0 );