Fixed prototype for MmSetAddressRangeModified().
[reactos.git] / lib / winedbgc / libmain.c
1 /*
2  * Win32 winedbgc functions
3  *
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #include <windows.h>
21 //#include <ntddk.h>
22 //#include <wine/debugtools.h>
23 //#include <stdlib.h>
24 //#include <stdio.h>
25 //#include <stdarg.h>
26 //#include <string.h>
27 //#include <ctype.h>
28 /*
29 #include "config.h"
30 #include "wine/port.h"
31
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <string.h>
35 #include <assert.h>
36
37 #include "winbase.h"
38 #include "wine/debug.h"
39 #include "wine/library.h"
40
41 #include "proxywinedbgc.h"
42
43 WINE_DEFAULT_DEBUG_CHANNEL(winedbgc);
44  */
45
46 /***********************************************************************
47  * DllMain [Internal] Initializes the internal 'winedbgc32.DLL'.
48  *
49  * PARAMS
50  *     hinstDLL    [I] handle to the DLL's instance
51  *     fdwReason   [I]
52  *     lpvReserved [I] reserved, must be NULL
53  *
54  * RETURNS
55  *     Success: TRUE
56  *     Failure: FALSE
57  */
58
59 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
60 {
61 //    TRACE("Initializing or Finalizing winedbgc: %p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
62     if (fdwReason == DLL_PROCESS_ATTACH)
63     {
64 //       TRACE("Loading winedbgc...\n");
65 /*
66 #ifndef __REACTOS__
67        if (winedbgc_LoadDriverManager())
68           winedbgc_LoadDMFunctions();
69 #endif
70  */
71     }
72     else if (fdwReason == DLL_PROCESS_DETACH)
73     {
74 //      TRACE("Unloading winedbgc...\n");
75 /*
76 #ifndef __REACTOS__
77       if (gProxyHandle.bFunctionReady)
78       {
79          int i;
80          for ( i = 0; i < NUM_SQLFUNC; i ++ )
81          {
82             gProxyHandle.functions[i].func = SQLDummyFunc;
83          }
84       }
85       if (gProxyHandle.dmHandle)
86       {
87          wine_dlclose(gProxyHandle.dmHandle,NULL,0);
88          gProxyHandle.dmHandle = NULL;
89       }
90 #endif
91  */
92     }
93     return TRUE;
94 }
95
96
97 /* EOF */