2 * GDI initialization code
7 #include "wine/winbase16.h"
15 /***********************************************************************
16 * GDI initialisation routine
18 BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
22 if ( GDI_HeapSel ) return TRUE;
25 if ((instance = LoadLibrary16( "GDI.EXE" )) < 32) return FALSE;
26 GDI_HeapSel = GlobalHandleToSel16( instance );
28 if (!TWEAK_Init()) return FALSE;
30 /* GDI initialisation */
31 if(!GDI_Init()) return FALSE;
33 /* Create the Win16 printer driver */
34 if (!WIN16DRV_Init()) return FALSE;
36 /* PSDRV initialization */
37 if (!LoadLibraryA( "wineps" )) return FALSE;