| * GDI initialization code |
| #include "wine/winbase16.h" |
| /*********************************************************************** |
| * GDI initialisation routine |
| BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) |
| if ( GDI_HeapSel ) return TRUE; |
| if ((instance = LoadLibrary16( "GDI.EXE" )) < 32) return FALSE; |
| GDI_HeapSel = GlobalHandleToSel16( instance ); |
| if (!TWEAK_Init()) return FALSE; |
| if(!GDI_Init()) return FALSE; |
| /* Create the Win16 printer driver */ |
| if (!WIN16DRV_Init()) return FALSE; |
| /* PSDRV initialization */ |
| if (!LoadLibraryA( "wineps" )) return FALSE; |