2000-03-19 13:08:09 +01:00
|
|
|
/*
|
|
|
|
* GDI initialization code
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright 2000 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2000-03-19 13:08:09 +01:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2001-01-26 21:43:40 +01:00
|
|
|
#include <string.h>
|
2000-03-19 13:08:09 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2000-03-19 13:08:09 +01:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/winbase16.h"
|
|
|
|
#include "gdi.h"
|
2004-01-15 01:35:38 +01:00
|
|
|
#include "gdi_private.h"
|
2000-03-19 13:08:09 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GDI initialisation routine
|
|
|
|
*/
|
2002-11-05 00:53:41 +01:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
|
2000-03-19 13:08:09 +01:00
|
|
|
{
|
2000-08-19 23:38:55 +02:00
|
|
|
if (reason != DLL_PROCESS_ATTACH) return TRUE;
|
2003-06-30 22:53:48 +02:00
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
2001-07-27 21:37:31 +02:00
|
|
|
return GDI_Init();
|
2000-03-19 13:08:09 +01:00
|
|
|
}
|
2000-08-06 04:42:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Copy (GDI.250)
|
|
|
|
*/
|
|
|
|
void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
|
|
|
|
{
|
|
|
|
memcpy( dst, src, size );
|
|
|
|
}
|