4 * Copyright 1998 Patrik Stridvall
11 #include "debugtools.h"
13 DEFAULT_DEBUG_CHANNEL(imagehlp)
15 /**********************************************************************/
17 HANDLE IMAGEHLP_hHeap = (HANDLE) NULL;
19 static API_VERSION IMAGEHLP_ApiVersion = { 4, 0, 0, 5 };
21 /***********************************************************************
22 * IMAGEHLP_LibMain (IMAGEHLP.init)
24 BOOL WINAPI IMAGEHLP_LibMain(
25 HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
29 case DLL_PROCESS_ATTACH:
30 IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0);
32 case DLL_PROCESS_DETACH:
33 HeapDestroy(IMAGEHLP_hHeap);
34 IMAGEHLP_hHeap = (HANDLE) NULL;
36 case DLL_THREAD_ATTACH:
38 case DLL_THREAD_DETACH:
46 /***********************************************************************
47 * ImagehlpApiVersion32 (IMAGEHLP.22)
49 PAPI_VERSION WINAPI ImagehlpApiVersion()
51 return &IMAGEHLP_ApiVersion;
54 /***********************************************************************
55 * ImagehlpApiVersionEx32 (IMAGEHLP.23)
57 PAPI_VERSION WINAPI ImagehlpApiVersionEx(PAPI_VERSION AppVersion)
62 AppVersion->MajorVersion = IMAGEHLP_ApiVersion.MajorVersion;
63 AppVersion->MinorVersion = IMAGEHLP_ApiVersion.MinorVersion;
64 AppVersion->Revision = IMAGEHLP_ApiVersion.Revision;
65 AppVersion->Reserved = IMAGEHLP_ApiVersion.Reserved;
70 /***********************************************************************
71 * MakeSureDirectoryPathExists32 (IMAGEHLP.24)
73 BOOL WINAPI MakeSureDirectoryPathExists(LPCSTR DirPath)
75 FIXME("(%s): stub\n", debugstr_a(DirPath));
76 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
80 /***********************************************************************
81 * MarkImageAsRunFromSwap (IMAGEHLP.29)
83 * No documentation available.
86 /***********************************************************************
87 * SearchTreeForFile32 (IMAGEHLP.33)
89 BOOL WINAPI SearchTreeForFile(
90 LPSTR RootPath, LPSTR InputPathName, LPSTR OutputPathBuffer)
92 FIXME("(%s, %s, %s): stub\n",
93 debugstr_a(RootPath), debugstr_a(InputPathName),
94 debugstr_a(OutputPathBuffer)
96 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
100 /***********************************************************************
101 * TouchFileTimes32 (IMAGEHLP.56)
103 BOOL WINAPI TouchFileTimes(
104 HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
106 FIXME("(0x%08x, %p): stub\n",
107 FileHandle, lpSystemTime
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);