:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / shell32 / misc / dllmain.c
1 /*
2  *  ReactOS shell32 - main library entry point
3  *
4  *  dllmain.c
5  *
6  *  Copyright (C) 2002  Robert Dickenson <robd@reactos.org>
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22 /* $Id$
23  *
24  * COPYRIGHT:       See COPYING in the top level directory
25  * PROJECT:         ReactOS system libraries
26  * FILE:            lib/shell32/misc/dllmain.c
27  * PURPOSE:         Library main function
28  * PROGRAMMER:      Rex Jolliff (rex@lvcablemodem.com)
29  */
30
31 //#include <ddk/ntddk.h>
32 #include <windows.h>
33 #include <cpl.h>
34 #include "..\control\control.h"
35
36 //#define NDEBUG
37 //#include <debug.h>
38 #ifdef _MSC_VER
39 #pragma warning (disable:4273) // : inconsistent dll linkage.  dllexport assumed.
40 #define STDCALL CALLBACK
41 #define WINBOOL BOOL
42
43 #else
44 #endif
45 #define DPRINT(a)
46 #define DPRINT1(a)
47
48
49 INT STDCALL
50 DllMain(PVOID hinstDll,
51         ULONG dwReason,
52         PVOID reserved)
53 {
54   DPRINT("SHELL32: DllMain() called\n");
55
56   switch (dwReason)
57   {
58   case DLL_PROCESS_ATTACH:
59       hInst = hinstDll;
60     break;
61
62   case DLL_PROCESS_DETACH:
63     break;
64   }
65
66   DPRINT1("SHELL32: DllMain() done\n");
67
68   return TRUE;
69 }
70
71