2000-03-19 12:08:09 +00:00
|
|
|
/*
|
|
|
|
* GDI initialization code
|
2002-03-09 23:29:33 +00: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
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2000-03-19 12:08:09 +00:00
|
|
|
*/
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
2001-01-26 20:43:40 +00:00
|
|
|
#include <string.h>
|
2000-03-19 12:08:09 +00:00
|
|
|
#include "windef.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "winbase.h"
|
2000-03-19 12:08:09 +00:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/winbase16.h"
|
2004-01-15 00:35:38 +00:00
|
|
|
#include "gdi_private.h"
|
2000-03-19 12:08:09 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GDI initialisation routine
|
|
|
|
*/
|
2002-11-04 23:53:41 +00:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
|
2000-03-19 12:08:09 +00:00
|
|
|
{
|
2000-08-19 21:38:55 +00:00
|
|
|
if (reason != DLL_PROCESS_ATTACH) return TRUE;
|
2003-06-30 20:53:48 +00:00
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
2005-06-01 11:06:14 +00:00
|
|
|
LoadLibrary16( "gdi.exe" );
|
2001-07-27 19:37:31 +00:00
|
|
|
return GDI_Init();
|
2000-03-19 12:08:09 +00:00
|
|
|
}
|
2000-08-06 02:42:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Copy (GDI.250)
|
|
|
|
*/
|
|
|
|
void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
|
|
|
|
{
|
|
|
|
memcpy( dst, src, size );
|
|
|
|
}
|