4 * Copyright 1998 Patrik Stridvall
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.
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.
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
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
29 /**********************************************************************/
31 HANDLE IMAGEHLP_hHeap = NULL;
33 static API_VERSION IMAGEHLP_ApiVersion = { 4, 0, 0, 5 };
35 /***********************************************************************
36 * DllMain (IMAGEHLP.init)
38 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
42 case DLL_PROCESS_ATTACH:
43 IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0);
45 case DLL_PROCESS_DETACH:
46 HeapDestroy(IMAGEHLP_hHeap);
47 IMAGEHLP_hHeap = NULL;
49 case DLL_THREAD_ATTACH:
51 case DLL_THREAD_DETACH:
59 /***********************************************************************
60 * ImagehlpApiVersion (IMAGEHLP.@)
62 PAPI_VERSION WINAPI ImagehlpApiVersion()
64 return &IMAGEHLP_ApiVersion;
67 /***********************************************************************
68 * ImagehlpApiVersionEx (IMAGEHLP.@)
70 PAPI_VERSION WINAPI ImagehlpApiVersionEx(PAPI_VERSION AppVersion)
75 AppVersion->MajorVersion = IMAGEHLP_ApiVersion.MajorVersion;
76 AppVersion->MinorVersion = IMAGEHLP_ApiVersion.MinorVersion;
77 AppVersion->Revision = IMAGEHLP_ApiVersion.Revision;
78 AppVersion->Reserved = IMAGEHLP_ApiVersion.Reserved;
83 /***********************************************************************
84 * MakeSureDirectoryPathExists (IMAGEHLP.@)
86 BOOL WINAPI MakeSureDirectoryPathExists(LPCSTR DirPath)
88 FIXME("(%s): stub\n", debugstr_a(DirPath));
89 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
93 /***********************************************************************
94 * MarkImageAsRunFromSwap (IMAGEHLP.@)
96 * No documentation available.
99 /***********************************************************************
100 * SearchTreeForFile (IMAGEHLP.@)
102 BOOL WINAPI SearchTreeForFile(
103 LPSTR RootPath, LPSTR InputPathName, LPSTR OutputPathBuffer)
105 FIXME("(%s, %s, %s): stub\n",
106 debugstr_a(RootPath), debugstr_a(InputPathName),
107 debugstr_a(OutputPathBuffer)
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
113 /***********************************************************************
114 * TouchFileTimes (IMAGEHLP.@)
116 BOOL WINAPI TouchFileTimes(
117 HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
119 FIXME("(%p, %p): stub\n",
120 FileHandle, lpSystemTime
122 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);