TB_SETBUTTONSIZE messages must be taken into account even after
[wine/dcerpc.git] / dlls / gdi / gdi_main.c
blob897a57fcace3f7856c1d6e5e5d9ff8f5054ff596
1 /*
2 * GDI initialization code
3 */
5 #include <string.h>
6 #include "windef.h"
7 #include "wingdi.h"
8 #include "wine/winbase16.h"
10 #include "gdi.h"
11 #include "win16drv.h"
12 #include "winbase.h"
14 /***********************************************************************
15 * GDI initialisation routine
17 BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
19 if (reason != DLL_PROCESS_ATTACH) return TRUE;
21 /* GDI initialisation */
22 if(!GDI_Init()) return FALSE;
24 /* Create the Win16 printer driver */
25 if (!WIN16DRV_Init()) return FALSE;
27 /* PSDRV initialization */
28 if (!LoadLibraryA( "wineps" )) return FALSE;
30 return TRUE;
34 /***********************************************************************
35 * Copy (GDI.250)
37 void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
39 memcpy( dst, src, size );