2 * GDI initialization code
7 #include "wine/winbase16.h"
16 /***********************************************************************
17 * GDI initialisation routine
19 BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
23 if ( GDI_HeapSel ) return TRUE;
26 if ((instance = LoadLibrary16( "GDI.EXE" )) < 32) return FALSE;
27 GDI_HeapSel = GlobalHandleToSel16( instance );
29 if (!TWEAK_Init()) return FALSE;
31 /* GDI initialisation */
32 if(!GDI_Init()) return FALSE;
34 /* Create the Win16 printer driver */
35 if (!WIN16DRV_Init()) return FALSE;
37 /* PSDRV initialization */
38 if(!PSDRV_Init()) return FALSE;