blob: 08a9322d809feb4de9b5542ffd6245767d6dd21a [file] [log] [blame]
Alexandre Julliard71ae2d72005-08-25 11:41:05 +00001/*
2 * DllMain default entry point
3 *
4 * Copyright 2005 Alexandre Julliard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard71ae2d72005-08-25 11:41:05 +000019 */
20
21#include <stdarg.h>
22#include "windef.h"
23#include "winbase.h"
24
Alexandre Julliard220f2ce2005-10-30 19:10:35 +000025BOOL WINAPI DECLSPEC_HIDDEN DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
Alexandre Julliard71ae2d72005-08-25 11:41:05 +000026{
Alexandre Julliardbba54232005-08-29 15:11:37 +000027 if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls( inst );
Alexandre Julliard71ae2d72005-08-25 11:41:05 +000028 return TRUE;
29}