Moved quite a few functions to dbghelp (removed debug.c and symbol.c
[wine] / dlls / imagehlp / imagehlp_main.c
1 /*
2  *      IMAGEHLP library
3  *
4  *      Copyright 1998  Patrik Stridvall
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
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "imagehlp.h"
26 #include "winerror.h"
27 #include "wine/debug.h"
28
29 WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
30
31 /**********************************************************************/
32 HANDLE IMAGEHLP_hHeap = NULL;
33
34 /***********************************************************************
35  *           DllMain (IMAGEHLP.init)
36  */
37 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
38 {
39   switch(fdwReason)
40     {
41     case DLL_PROCESS_ATTACH:
42       DisableThreadLibraryCalls(hinstDLL);
43       IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0);
44       break;
45     case DLL_PROCESS_DETACH:
46       HeapDestroy(IMAGEHLP_hHeap);
47       IMAGEHLP_hHeap = NULL;
48       break;
49     default:
50       break;
51     }
52   return TRUE;
53 }
54
55 /***********************************************************************
56  *           MarkImageAsRunFromSwap (IMAGEHLP.@)
57  * FIXME
58  *   No documentation available.
59  */
60
61 /***********************************************************************
62  *           TouchFileTimes (IMAGEHLP.@)
63  */
64 BOOL WINAPI TouchFileTimes(
65   HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
66 {
67   FIXME("(%p, %p): stub\n",
68     FileHandle, lpSystemTime
69   );
70   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
71   return FALSE;
72 }