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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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"
|
|
|
|
#include "gdi.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);
|
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 );
|
|
|
|
}
|