Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1 | /* |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 2 | * Declarations for IMAGEHLP |
| 3 | * |
| 4 | * Copyright (C) 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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_IMAGEHLP_H |
| 22 | #define __WINE_IMAGEHLP_H |
| 23 | |
Francois Gouget | d9c97f3 | 2004-10-25 21:50:09 +0000 | [diff] [blame] | 24 | #include <wintrust.h> |
| 25 | |
Patrik Stridvall | 14da7b1 | 1999-06-12 10:53:06 +0000 | [diff] [blame] | 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif /* defined(__cplusplus) */ |
| 29 | |
Francois Gouget | 4c11d57 | 2007-08-04 03:15:17 +0200 | [diff] [blame] | 30 | #define IMAGEAPI WINAPI |
| 31 | #define DBHLPAPI IMAGEAPI |
| 32 | |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 33 | #define API_VERSION_NUMBER 7 /* 7 is the default */ |
| 34 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 35 | /*********************************************************************** |
| 36 | * Types |
| 37 | */ |
| 38 | |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 39 | typedef PVOID DIGEST_HANDLE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 40 | |
| 41 | /*********************************************************************** |
| 42 | * Enums/Defines |
| 43 | */ |
| 44 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 45 | typedef enum _IMAGEHLP_STATUS_REASON { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 46 | BindOutOfMemory, |
| 47 | BindRvaToVaFailed, |
| 48 | BindNoRoomInImage, |
| 49 | BindImportModuleFailed, |
| 50 | BindImportProcedureFailed, |
| 51 | BindImportModule, |
| 52 | BindImportProcedure, |
| 53 | BindForwarder, |
| 54 | BindForwarderNOT, |
| 55 | BindImageModified, |
| 56 | BindExpandFileHeaders, |
| 57 | BindImageComplete, |
| 58 | BindMismatchedSymbols, |
| 59 | BindSymbolsNotUpdated |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 60 | } IMAGEHLP_STATUS_REASON; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 61 | |
| 62 | #define BIND_NO_BOUND_IMPORTS 0x00000001 |
| 63 | #define BIND_NO_UPDATE 0x00000002 |
| 64 | #define BIND_ALL_IMAGES 0x00000004 |
| 65 | #define BIND_CACHE_IMPORT_DLLS 0x00000008 |
| 66 | |
| 67 | #define CERT_PE_IMAGE_DIGEST_DEBUG_INFO 0x01 |
| 68 | #define CERT_PE_IMAGE_DIGEST_RESOURCES 0x02 |
| 69 | #define CERT_PE_IMAGE_DIGEST_ALL_IMPORT_INFO 0x04 |
| 70 | #define CERT_PE_IMAGE_DIGEST_NON_PE_INFO 0x08 |
| 71 | |
| 72 | #define CERT_SECTION_TYPE_ANY 0xFF |
| 73 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 74 | #define SPLITSYM_REMOVE_PRIVATE 0x00000001 |
| 75 | #define SPLITSYM_EXTRACT_ALL 0x00000002 |
| 76 | #define SPLITSYM_SYMBOLPATH_IS_SRC 0x00000004 |
| 77 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 78 | #define FRAME_FPO 0 |
| 79 | #define FRAME_TRAP 1 |
| 80 | #define FRAME_TSS 2 |
| 81 | #define FRAME_NONFPO 3 |
| 82 | |
| 83 | #define CHECKSUM_SUCCESS 0 |
| 84 | #define CHECKSUM_OPEN_FAILURE 1 |
| 85 | #define CHECKSUM_MAP_FAILURE 2 |
| 86 | #define CHECKSUM_MAPVIEW_FAILURE 3 |
| 87 | #define CHECKSUM_UNICODE_FAILURE 4 |
| 88 | |
Francois Gouget | 766611b | 2006-09-07 19:54:54 +0200 | [diff] [blame] | 89 | typedef enum _ADDRESS_MODE { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 90 | AddrMode1616, |
| 91 | AddrMode1632, |
| 92 | AddrModeReal, |
| 93 | AddrModeFlat |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 94 | } ADDRESS_MODE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 95 | |
| 96 | #define SYMOPT_CASE_INSENSITIVE 0x00000001 |
| 97 | #define SYMOPT_UNDNAME 0x00000002 |
| 98 | #define SYMOPT_DEFERRED_LOADS 0x00000004 |
| 99 | #define SYMOPT_NO_CPP 0x00000008 |
| 100 | #define SYMOPT_LOAD_LINES 0x00000010 |
| 101 | #define SYMOPT_OMAP_FIND_NEAREST 0x00000020 |
| 102 | |
| 103 | #define SYMF_OMAP_GENERATED 0x00000001 |
| 104 | #define SYMF_OMAP_MODIFIED 0x00000002 |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 105 | /* 0x00000004 has been obsoleted */ |
| 106 | #define SYMF_REGISTER 0x00000008 |
| 107 | #define SYMF_REGREL 0x00000010 |
| 108 | #define SYMF_FRAMEREL 0x00000020 |
| 109 | #define SYMF_PARAMETER 0x00000040 |
| 110 | #define SYMF_LOCAL 0x00000080 |
| 111 | #define SYMF_CONSTANT 0x00000100 |
| 112 | #define SYMF_EXPORT 0x00000200 |
| 113 | #define SYMF_FORWARDER 0x00000400 |
| 114 | #define SYMF_FUNCTION 0x00000800 |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 115 | |
Francois Gouget | 9dc50e1 | 2001-05-11 19:54:47 +0000 | [diff] [blame] | 116 | typedef enum { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 117 | SymNone, |
| 118 | SymCoff, |
| 119 | SymCv, |
| 120 | SymPdb, |
| 121 | SymExport, |
| 122 | SymDeferred, |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 123 | SymSym, |
| 124 | SymDia, |
| 125 | SymVirtual, |
| 126 | NumSymTypes |
Francois Gouget | 9dc50e1 | 2001-05-11 19:54:47 +0000 | [diff] [blame] | 127 | } SYM_TYPE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 128 | |
| 129 | #define UNDNAME_COMPLETE 0x0000 |
| 130 | #define UNDNAME_NO_LEADING_UNDERSCORES 0x0001 |
| 131 | #define UNDNAME_NO_MS_KEYWORDS 0x0002 |
| 132 | #define UNDNAME_NO_FUNCTION_RETURNS 0x0004 |
| 133 | #define UNDNAME_NO_ALLOCATION_MODEL 0x0008 |
| 134 | #define UNDNAME_NO_ALLOCATION_LANGUAGE 0x0010 |
| 135 | #define UNDNAME_NO_MS_THISTYPE 0x0020 |
| 136 | #define UNDNAME_NO_CV_THISTYPE 0x0040 |
| 137 | #define UNDNAME_NO_THISTYPE 0x0060 |
| 138 | #define UNDNAME_NO_ACCESS_SPECIFIERS 0x0080 |
| 139 | #define UNDNAME_NO_THROW_SIGNATURES 0x0100 |
| 140 | #define UNDNAME_NO_MEMBER_TYPE 0x0200 |
| 141 | #define UNDNAME_NO_RETURN_UDT_MODEL 0x0400 |
| 142 | #define UNDNAME_32_BIT_DECODE 0x0800 |
| 143 | #define UNDNAME_NAME_ONLY 0x1000 |
| 144 | #define UNDNAME_NO_ARGUMENTS 0x2000 |
| 145 | #define UNDNAME_NO_SPECIAL_SYMS 0x4000 |
| 146 | |
| 147 | #define CBA_DEFERRED_SYMBOL_LOAD_START 0x00000001 |
| 148 | #define CBA_DEFERRED_SYMBOL_LOAD_COMPLETE 0x00000002 |
| 149 | #define CBA_DEFERRED_SYMBOL_LOAD_FAILURE 0x00000003 |
| 150 | #define CBA_SYMBOLS_UNLOADED 0x00000004 |
| 151 | #define CBA_DUPLICATE_SYMBOL 0x00000005 |
| 152 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 153 | /*********************************************************************** |
| 154 | * Structures |
| 155 | */ |
| 156 | |
Francois Gouget | 7a70f9f | 2007-08-03 00:49:50 +0200 | [diff] [blame] | 157 | typedef struct _LOADED_IMAGE |
| 158 | { |
| 159 | PSTR ModuleName; |
| 160 | HANDLE hFile; |
| 161 | PUCHAR MappedAddress; |
| 162 | PIMAGE_NT_HEADERS FileHeader; |
| 163 | PIMAGE_SECTION_HEADER LastRvaSection; |
| 164 | ULONG NumberOfSections; |
| 165 | PIMAGE_SECTION_HEADER Sections; |
| 166 | ULONG Characteristics; |
| 167 | BOOLEAN fSystemImage; |
| 168 | BOOLEAN fDOSImage; |
| 169 | BOOLEAN fReadOnly; |
| 170 | UCHAR Version; |
| 171 | LIST_ENTRY Links; |
| 172 | ULONG SizeOfImage; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 173 | } LOADED_IMAGE, *PLOADED_IMAGE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 174 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 175 | typedef struct _API_VERSION { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 176 | USHORT MajorVersion; |
| 177 | USHORT MinorVersion; |
| 178 | USHORT Revision; |
| 179 | USHORT Reserved; |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 180 | } API_VERSION, *LPAPI_VERSION; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 181 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 182 | typedef struct _IMAGE_DEBUG_INFORMATION { |
| 183 | LIST_ENTRY List; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 184 | DWORD Size; |
| 185 | PVOID MappedBase; |
| 186 | USHORT Machine; |
| 187 | USHORT Characteristics; |
| 188 | DWORD CheckSum; |
| 189 | DWORD ImageBase; |
| 190 | DWORD SizeOfImage; |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 191 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 192 | DWORD NumberOfSections; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 193 | PIMAGE_SECTION_HEADER Sections; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 194 | |
| 195 | DWORD ExportedNamesSize; |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 196 | PSTR ExportedNames; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 197 | |
| 198 | DWORD NumberOfFunctionTableEntries; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 199 | PIMAGE_FUNCTION_ENTRY FunctionTableEntries; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 200 | DWORD LowestFunctionStartingAddress; |
| 201 | DWORD HighestFunctionEndingAddress; |
| 202 | |
| 203 | DWORD NumberOfFpoTableEntries; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 204 | PFPO_DATA FpoTableEntries; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 205 | |
| 206 | DWORD SizeOfCoffSymbols; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 207 | PIMAGE_COFF_SYMBOLS_HEADER CoffSymbols; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 208 | |
| 209 | DWORD SizeOfCodeViewSymbols; |
| 210 | PVOID CodeViewSymbols; |
| 211 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 212 | PSTR ImageFilePath; |
| 213 | PSTR ImageFileName; |
| 214 | PSTR DebugFilePath; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 215 | |
| 216 | DWORD TimeDateStamp; |
| 217 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 218 | BOOL RomImage; |
| 219 | PIMAGE_DEBUG_DIRECTORY DebugDirectory; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 220 | DWORD NumberOfDebugDirectories; |
| 221 | |
| 222 | DWORD Reserved[3]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 223 | } IMAGE_DEBUG_INFORMATION, *PIMAGE_DEBUG_INFORMATION; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 224 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 225 | typedef struct _ADDRESS { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 226 | DWORD Offset; |
| 227 | WORD Segment; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 228 | ADDRESS_MODE Mode; |
Francois Gouget | faab0c7 | 2007-09-18 00:40:34 +0200 | [diff] [blame] | 229 | } ADDRESS, *LPADDRESS; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 230 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 231 | typedef struct _ADDRESS64 { |
| 232 | DWORD64 Offset; |
| 233 | WORD Segment; |
| 234 | ADDRESS_MODE Mode; |
| 235 | } ADDRESS64, *LPADDRESS64; |
| 236 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 237 | typedef struct _KDHELP { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 238 | DWORD Thread; |
| 239 | DWORD ThCallbackStack; |
| 240 | DWORD NextCallback; |
| 241 | DWORD FramePointer; |
| 242 | DWORD KiCallUserMode; |
| 243 | DWORD KeUserCallbackDispatcher; |
| 244 | DWORD SystemRangeStart; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 245 | } KDHELP, *PKDHELP; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 246 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 247 | typedef struct _KDHELP64 { |
| 248 | DWORD64 Thread; |
| 249 | DWORD ThCallbackStack; |
| 250 | DWORD ThCallbackBStore; |
| 251 | DWORD NextCallback; |
| 252 | DWORD FramePointer; |
| 253 | DWORD64 KiCallUserMode; |
| 254 | DWORD64 KeUserCallbackDispatcher; |
| 255 | DWORD64 SystemRangeStart; |
| 256 | DWORD64 Reserved[8]; |
| 257 | } KDHELP64, *PKDHELP64; |
| 258 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 259 | typedef struct _STACKFRAME { |
| 260 | ADDRESS AddrPC; |
| 261 | ADDRESS AddrReturn; |
| 262 | ADDRESS AddrFrame; |
| 263 | ADDRESS AddrStack; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 264 | PVOID FuncTableEntry; |
| 265 | DWORD Params[4]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 266 | BOOL Far; |
| 267 | BOOL Virtual; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 268 | DWORD Reserved[3]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 269 | KDHELP KdHelp; |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 270 | } STACKFRAME, *LPSTACKFRAME; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 271 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 272 | typedef struct _STACKFRAME64 { |
| 273 | ADDRESS64 AddrPC; |
| 274 | ADDRESS64 AddrReturn; |
| 275 | ADDRESS64 AddrFrame; |
| 276 | ADDRESS64 AddrStack; |
| 277 | ADDRESS64 AddrBStore; |
| 278 | PVOID FuncTableEntry; |
| 279 | DWORD64 Params[4]; |
| 280 | BOOL Far; |
| 281 | BOOL Virtual; |
| 282 | DWORD64 Reserved[3]; |
| 283 | KDHELP64 KdHelp; |
| 284 | } STACKFRAME64, *LPSTACKFRAME64; |
| 285 | |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 286 | typedef struct _SOURCEFILE { |
| 287 | DWORD64 ModBase; |
| 288 | PCHAR FileName; |
| 289 | } SOURCEFILE, *PSOURCEFILE; |
| 290 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 291 | typedef struct _SOURCEFILEW |
| 292 | { |
| 293 | DWORD64 ModBase; |
| 294 | PWSTR FileName; |
| 295 | } SOURCEFILEW, *PSOURCEFILEW; |
| 296 | |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 297 | typedef struct _IMAGEHLP_STACK_FRAME |
| 298 | { |
| 299 | DWORD InstructionOffset; |
| 300 | DWORD ReturnOffset; |
| 301 | DWORD FrameOffset; |
| 302 | DWORD StackOffset; |
| 303 | DWORD BackingStoreOffset; |
| 304 | DWORD FuncTableEntry; |
| 305 | DWORD Params[4]; |
| 306 | DWORD Reserved[5]; |
| 307 | DWORD Virtual; |
| 308 | DWORD Reserved2; |
| 309 | } IMAGEHLP_STACK_FRAME, *PIMAGEHLP_STACK_FRAME; |
| 310 | |
| 311 | typedef VOID IMAGEHLP_CONTEXT, *PIMAGEHLP_CONTEXT; |
| 312 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 313 | typedef struct _IMAGEHLP_SYMBOL { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 314 | DWORD SizeOfStruct; |
| 315 | DWORD Address; |
| 316 | DWORD Size; |
| 317 | DWORD Flags; |
| 318 | DWORD MaxNameLength; |
| 319 | CHAR Name[ANYSIZE_ARRAY]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 320 | } IMAGEHLP_SYMBOL, *PIMAGEHLP_SYMBOL; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 321 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 322 | typedef struct _IMAGEHLP_SYMBOLW { |
| 323 | DWORD SizeOfStruct; |
| 324 | DWORD Address; |
| 325 | DWORD Size; |
| 326 | DWORD Flags; |
| 327 | DWORD MaxNameLength; |
| 328 | WCHAR Name[ANYSIZE_ARRAY]; |
| 329 | } IMAGEHLP_SYMBOLW, *PIMAGEHLP_SYMBOLW; |
| 330 | |
| 331 | typedef struct _IMAGEHLP_SYMBOL64 |
| 332 | { |
| 333 | DWORD SizeOfStruct; |
| 334 | DWORD64 Address; |
| 335 | DWORD Size; |
| 336 | DWORD Flags; |
| 337 | DWORD MaxNameLength; |
| 338 | CHAR Name[1]; |
| 339 | } IMAGEHLP_SYMBOL64, *PIMAGEHLP_SYMBOL64; |
| 340 | |
| 341 | typedef struct _IMAGEHLP_SYMBOLW64 |
| 342 | { |
| 343 | DWORD SizeOfStruct; |
| 344 | DWORD64 Address; |
| 345 | DWORD Size; |
| 346 | DWORD Flags; |
| 347 | DWORD MaxNameLength; |
| 348 | WCHAR Name[1]; |
| 349 | } IMAGEHLP_SYMBOLW64, *PIMAGEHLP_SYMBOLW64; |
| 350 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 351 | typedef struct _IMAGEHLP_MODULE { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 352 | DWORD SizeOfStruct; |
| 353 | DWORD BaseOfImage; |
| 354 | DWORD ImageSize; |
| 355 | DWORD TimeDateStamp; |
| 356 | DWORD CheckSum; |
| 357 | DWORD NumSyms; |
Francois Gouget | 9dc50e1 | 2001-05-11 19:54:47 +0000 | [diff] [blame] | 358 | SYM_TYPE SymType; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 359 | CHAR ModuleName[32]; |
| 360 | CHAR ImageName[256]; |
| 361 | CHAR LoadedImageName[256]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 362 | } IMAGEHLP_MODULE, *PIMAGEHLP_MODULE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 363 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 364 | typedef struct _IMAGEHLP_MODULEW { |
| 365 | DWORD SizeOfStruct; |
| 366 | DWORD BaseOfImage; |
| 367 | DWORD ImageSize; |
| 368 | DWORD TimeDateStamp; |
| 369 | DWORD CheckSum; |
| 370 | DWORD NumSyms; |
| 371 | SYM_TYPE SymType; |
| 372 | WCHAR ModuleName[32]; |
| 373 | WCHAR ImageName[256]; |
| 374 | WCHAR LoadedImageName[256]; |
| 375 | } IMAGEHLP_MODULEW, *PIMAGEHLP_MODULEW; |
| 376 | |
| 377 | typedef struct _IMAGEHLP_MODULE64 |
| 378 | { |
| 379 | DWORD SizeOfStruct; |
| 380 | DWORD64 BaseOfImage; |
| 381 | DWORD ImageSize; |
| 382 | DWORD TimeDateStamp; |
| 383 | DWORD CheckSum; |
| 384 | DWORD NumSyms; |
| 385 | SYM_TYPE SymType; |
| 386 | CHAR ModuleName[32]; |
| 387 | CHAR ImageName[256]; |
| 388 | CHAR LoadedImageName[256]; |
| 389 | CHAR LoadedPdbName[256]; |
| 390 | DWORD CVSig; |
| 391 | CHAR CVData[MAX_PATH*3]; |
| 392 | DWORD PdbSig; |
| 393 | GUID PdbSig70; |
| 394 | DWORD PdbAge; |
| 395 | BOOL PdbUnmatched; |
| 396 | BOOL DbgUnmatched; |
| 397 | BOOL LineNumbers; |
| 398 | BOOL GlobalSymbols; |
| 399 | BOOL TypeInfo; |
| 400 | BOOL SourceIndexed; |
| 401 | BOOL Publics; |
| 402 | } IMAGEHLP_MODULE64, *PIMAGEHLP_MODULE64; |
| 403 | |
| 404 | typedef struct _IMAGEHLP_MODULEW64 |
| 405 | { |
| 406 | DWORD SizeOfStruct; |
| 407 | DWORD64 BaseOfImage; |
| 408 | DWORD ImageSize; |
| 409 | DWORD TimeDateStamp; |
| 410 | DWORD CheckSum; |
| 411 | DWORD NumSyms; |
| 412 | SYM_TYPE SymType; |
| 413 | WCHAR ModuleName[32]; |
| 414 | WCHAR ImageName[256]; |
| 415 | WCHAR LoadedImageName[256]; |
| 416 | WCHAR LoadedPdbName[256]; |
| 417 | DWORD CVSig; |
| 418 | WCHAR CVData[MAX_PATH*3]; |
| 419 | DWORD PdbSig; |
| 420 | GUID PdbSig70; |
| 421 | DWORD PdbAge; |
| 422 | BOOL PdbUnmatched; |
| 423 | BOOL DbgUnmatched; |
| 424 | BOOL LineNumbers; |
| 425 | BOOL GlobalSymbols; |
| 426 | BOOL TypeInfo; |
| 427 | BOOL SourceIndexed; |
| 428 | BOOL Publics; |
| 429 | } IMAGEHLP_MODULEW64, *PIMAGEHLP_MODULEW64; |
| 430 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 431 | typedef struct _IMAGEHLP_LINE { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 432 | DWORD SizeOfStruct; |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 433 | PVOID Key; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 434 | DWORD LineNumber; |
| 435 | PCHAR FileName; |
| 436 | DWORD Address; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 437 | } IMAGEHLP_LINE, *PIMAGEHLP_LINE; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 438 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 439 | typedef struct _IMAGEHLP_LINEW { |
| 440 | DWORD SizeOfStruct; |
| 441 | PVOID Key; |
| 442 | DWORD LineNumber; |
| 443 | PWSTR FileName; |
| 444 | DWORD Address; |
| 445 | } IMAGEHLP_LINEW, *PIMAGEHLP_LINEW; |
| 446 | |
| 447 | typedef struct _IMAGEHLP_LINE64 { |
| 448 | DWORD SizeOfStruct; |
| 449 | PVOID Key; |
| 450 | DWORD LineNumber; |
| 451 | PCHAR FileName; |
| 452 | DWORD64 Address; |
| 453 | } IMAGEHLP_LINE64, *PIMAGEHLP_LINE64; |
| 454 | |
| 455 | typedef struct _IMAGEHLP_LINEW64 { |
| 456 | DWORD SizeOfStruct; |
| 457 | PVOID Key; |
| 458 | DWORD LineNumber; |
| 459 | PWSTR FileName; |
| 460 | DWORD64 Address; |
| 461 | } IMAGEHLP_LINEW64, *PIMAGEHLP_LINEW64; |
| 462 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 463 | typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 464 | DWORD SizeOfStruct; |
| 465 | DWORD BaseOfImage; |
| 466 | DWORD CheckSum; |
| 467 | DWORD TimeDateStamp; |
| 468 | CHAR FileName[MAX_PATH]; |
| 469 | BOOLEAN Reparse; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 470 | } IMAGEHLP_DEFERRED_SYMBOL_LOAD, *PIMAGEHLP_DEFERRED_SYMBOL_LOAD; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 471 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 472 | typedef struct _IMAGEHLP_DUPLICATE_SYMBOL { |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 473 | DWORD SizeOfStruct; |
| 474 | DWORD NumberOfDups; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 475 | PIMAGEHLP_SYMBOL Symbol; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 476 | ULONG SelectedSymbol; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 477 | } IMAGEHLP_DUPLICATE_SYMBOL, *PIMAGEHLP_DUPLICATE_SYMBOL; |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 478 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 479 | typedef enum _IMAGEHLP_SYMBOL_TYPE_INFO |
| 480 | { |
| 481 | TI_GET_SYMTAG, |
| 482 | TI_GET_SYMNAME, |
| 483 | TI_GET_LENGTH, |
| 484 | TI_GET_TYPE, |
| 485 | TI_GET_TYPEID, |
| 486 | TI_GET_BASETYPE, |
| 487 | TI_GET_ARRAYINDEXTYPEID, |
| 488 | TI_FINDCHILDREN, |
| 489 | TI_GET_DATAKIND, |
| 490 | TI_GET_ADDRESSOFFSET, |
| 491 | TI_GET_OFFSET, |
| 492 | TI_GET_VALUE, |
| 493 | TI_GET_COUNT, |
| 494 | TI_GET_CHILDRENCOUNT, |
| 495 | TI_GET_BITPOSITION, |
| 496 | TI_GET_VIRTUALBASECLASS, |
| 497 | TI_GET_VIRTUALTABLESHAPEID, |
| 498 | TI_GET_VIRTUALBASEPOINTEROFFSET, |
| 499 | TI_GET_CLASSPARENTID, |
| 500 | TI_GET_NESTED, |
| 501 | TI_GET_SYMINDEX, |
| 502 | TI_GET_LEXICALPARENT, |
| 503 | TI_GET_ADDRESS, |
| 504 | TI_GET_THISADJUST, |
| 505 | TI_GET_UDTKIND, |
| 506 | TI_IS_EQUIV_TO, |
| 507 | TI_GET_CALLING_CONVENTION, |
| 508 | } IMAGEHLP_SYMBOL_TYPE_INFO; |
| 509 | |
| 510 | #define IMAGEHLP_GET_TYPE_INFO_UNCACHED 0x00000001 |
| 511 | #define IMAGEHLP_GET_TYPE_INFO_CHILDREN 0x00000002 |
| 512 | typedef struct _IMAGEHLP_GET_TYPE_INFO_PARAMS |
| 513 | { |
| 514 | ULONG SizeOfStruct; |
| 515 | ULONG Flags; |
| 516 | ULONG NumIds; |
| 517 | PULONG TypeIds; |
| 518 | ULONG64 TagFilter; |
| 519 | ULONG NumReqs; |
| 520 | IMAGEHLP_SYMBOL_TYPE_INFO* ReqKinds; |
| 521 | PULONG_PTR ReqOffsets; |
| 522 | PULONG ReqSizes; |
| 523 | ULONG_PTR ReqStride; |
| 524 | ULONG_PTR BufferSize; |
| 525 | PVOID Buffer; |
| 526 | ULONG EntriesMatched; |
| 527 | ULONG EntriesFilled; |
| 528 | ULONG64 TagsFound; |
| 529 | ULONG64 AllReqsValid; |
| 530 | ULONG NumReqsValid; |
| 531 | PULONG64 ReqsValid; |
| 532 | } IMAGEHLP_GET_TYPE_INFO_PARAMS, *PIMAGEHLP_GET_TYPE_INFO_PARAMS; |
| 533 | |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 534 | #define IMAGEHLP_SYMBOL_INFO_VALUEPRESENT 1 |
| 535 | #define IMAGEHLP_SYMBOL_INFO_REGISTER SYMF_REGISTER |
| 536 | #define IMAGEHLP_SYMBOL_INFO_REGRELATIVE SYMF_REGREL |
| 537 | #define IMAGEHLP_SYMBOL_INFO_FRAMERELATIVE SYMF_FRAMEREL |
| 538 | #define IMAGEHLP_SYMBOL_INFO_PARAMETER SYMF_PARAMETER |
| 539 | #define IMAGEHLP_SYMBOL_INFO_LOCAL SYMF_LOCAL |
| 540 | #define IMAGEHLP_SYMBOL_INFO_CONSTANT SYMF_CONSTANT |
| 541 | #define IMAGEHLP_SYMBOL_FUNCTION SYMF_FUNCTION |
| 542 | |
Francois Gouget | 4035b22 | 2007-09-18 00:40:42 +0200 | [diff] [blame] | 543 | #define MAX_SYM_NAME 2000 |
| 544 | |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 545 | typedef struct _SYMBOL_INFO { |
| 546 | ULONG SizeOfStruct; |
| 547 | ULONG TypeIndex; |
| 548 | ULONG64 Reserved[2]; |
| 549 | ULONG info; |
| 550 | ULONG Size; |
| 551 | ULONG64 ModBase; |
| 552 | ULONG Flags; |
| 553 | ULONG64 Value; |
| 554 | ULONG64 Address; |
| 555 | ULONG Register; |
| 556 | ULONG Scope; |
| 557 | ULONG Tag; |
| 558 | ULONG NameLen; |
| 559 | ULONG MaxNameLen; |
| 560 | CHAR Name[1]; |
| 561 | } SYMBOL_INFO, *PSYMBOL_INFO; |
| 562 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 563 | typedef struct _SYMBOL_INFOW |
| 564 | { |
| 565 | ULONG SizeOfStruct; |
| 566 | ULONG TypeIndex; |
| 567 | ULONG64 Reserved[2]; |
| 568 | ULONG Index; |
| 569 | ULONG Size; |
| 570 | ULONG64 ModBase; |
| 571 | ULONG Flags; |
| 572 | ULONG64 Value; |
| 573 | ULONG64 Address; |
| 574 | ULONG Register; |
| 575 | ULONG Scope; |
| 576 | ULONG Tag; |
| 577 | ULONG NameLen; |
| 578 | ULONG MaxNameLen; |
| 579 | WCHAR Name[1]; |
| 580 | } SYMBOL_INFOW, *PSYMBOL_INFOW; |
| 581 | |
Francois Gouget | 4035b22 | 2007-09-18 00:40:42 +0200 | [diff] [blame] | 582 | typedef struct _SYMBOL_INFO_PACKAGE |
| 583 | { |
| 584 | SYMBOL_INFO si; |
| 585 | CHAR name[MAX_SYM_NAME+1]; |
| 586 | } SYMBOL_INFO_PACKAGE, *PSYMBOL_INFO_PACKAGE; |
| 587 | |
| 588 | typedef struct _SYMBOL_INFO_PACKAGEW |
| 589 | { |
| 590 | SYMBOL_INFOW si; |
| 591 | WCHAR name[MAX_SYM_NAME+1]; |
| 592 | } SYMBOL_INFO_PACKAGEW, *PSYMBOL_INFO_PACKAGEW; |
| 593 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 594 | #define DBHHEADER_DEBUGDIRS 0x1 |
| 595 | typedef struct _MODLOAD_DATA |
| 596 | { |
| 597 | DWORD ssize; |
| 598 | DWORD ssig; |
| 599 | PVOID data; |
| 600 | DWORD size; |
| 601 | DWORD flags; |
| 602 | } MODLOAD_DATA, *PMODLOAD_DATA; |
| 603 | |
| 604 | typedef struct _SRCCODEINFO |
| 605 | { |
| 606 | DWORD SizeOfStruct; |
| 607 | PVOID Key; |
| 608 | DWORD64 ModBase; |
| 609 | CHAR Obj[MAX_PATH+1]; |
| 610 | CHAR FileName[MAX_PATH+1]; |
| 611 | DWORD LineNumber; |
| 612 | DWORD64 Address; |
| 613 | } SRCCODEINFO, *PSRCCODEINFO; |
| 614 | |
| 615 | typedef struct _SRCCODEINFOW |
| 616 | { |
| 617 | DWORD SizeOfStruct; |
| 618 | PVOID Key; |
| 619 | DWORD64 ModBase; |
| 620 | WCHAR Obj[MAX_PATH+1]; |
| 621 | WCHAR FileName[MAX_PATH+1]; |
| 622 | DWORD LineNumber; |
| 623 | DWORD64 Address; |
| 624 | } SRCCODEINFOW, *PSRCCODEINFOW; |
| 625 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 626 | /*********************************************************************** |
| 627 | * Callbacks |
| 628 | */ |
| 629 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 630 | typedef BOOL (CALLBACK *PENUMDIRTREE_CALLBACK)( |
| 631 | PCSTR, PVOID |
| 632 | ); |
| 633 | typedef BOOL (CALLBACK *PENUMDIRTREE_CALLBACKW)( |
| 634 | PCWSTR, PVOID |
| 635 | ); |
| 636 | |
| 637 | typedef BOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACK)( |
| 638 | PCSTR ModuleName, ULONG ModuleBase, ULONG ModuleSize, |
| 639 | PVOID UserContext |
| 640 | ); |
| 641 | typedef BOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACK64)( |
| 642 | PCSTR, DWORD64, ULONG, PVOID |
| 643 | ); |
| 644 | typedef BOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACKW64)( |
| 645 | PCWSTR, DWORD64, ULONG, PVOID |
| 646 | ); |
| 647 | |
| 648 | typedef BOOL (CALLBACK *PFIND_DEBUG_FILE_CALLBACK)( |
| 649 | HANDLE, PCSTR, PVOID |
| 650 | ); |
| 651 | typedef BOOL (CALLBACK *PFIND_DEBUG_FILE_CALLBACKW)( |
| 652 | HANDLE, PCWSTR, PVOID |
| 653 | ); |
| 654 | |
| 655 | typedef BOOL (CALLBACK *PFIND_EXE_FILE_CALLBACK)( |
| 656 | HANDLE, PCSTR, PVOID |
| 657 | ); |
| 658 | typedef BOOL (CALLBACK *PFIND_EXE_FILE_CALLBACKW)( |
| 659 | HANDLE, PCWSTR, PVOID |
| 660 | ); |
| 661 | |
| 662 | typedef BOOL (CALLBACK *PFINDFILEINPATHCALLBACK)( |
| 663 | PCSTR, PVOID |
| 664 | ); |
| 665 | typedef BOOL (CALLBACK *PFINDFILEINPATHCALLBACKW)( |
| 666 | PCWSTR, PVOID |
| 667 | ); |
| 668 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 669 | typedef BOOL (CALLBACK *PIMAGEHLP_STATUS_ROUTINE)( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 670 | IMAGEHLP_STATUS_REASON Reason, PCSTR ImageName, PCSTR DllName, |
| 671 | ULONG_PTR Va, ULONG_PTR Parameter |
| 672 | ); |
| 673 | typedef BOOL (CALLBACK *PIMAGEHLP_STATUS_ROUTINE32)( |
| 674 | IMAGEHLP_STATUS_REASON Reason, PCSTR ImageName, PCSTR DllName, |
| 675 | ULONG Va, ULONG_PTR Parameter |
| 676 | ); |
| 677 | typedef BOOL (CALLBACK *PIMAGEHLP_STATUS_ROUTINE64)( |
| 678 | IMAGEHLP_STATUS_REASON Reason, PCSTR ImageName, PCSTR DllName, |
| 679 | ULONG64 Va, ULONG_PTR Parameter |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 680 | ); |
| 681 | |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 682 | typedef BOOL (CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACK)( |
Francois Gouget | 98d63f3 | 2007-09-18 00:40:19 +0200 | [diff] [blame] | 683 | PSYMBOL_INFO pSymInfo, ULONG SymbolSize, PVOID UserContext |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 684 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 685 | typedef BOOL (CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACKW)( |
Francois Gouget | 98d63f3 | 2007-09-18 00:40:19 +0200 | [diff] [blame] | 686 | PSYMBOL_INFOW pSymInfo, ULONG SymbolSize, PVOID UserContext |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 687 | ); |
| 688 | |
| 689 | typedef BOOL (CALLBACK* PSYM_ENUMLINES_CALLBACK)( |
| 690 | PSRCCODEINFO, PVOID |
| 691 | ); |
| 692 | typedef BOOL (CALLBACK* PSYM_ENUMLINES_CALLBACKW)( |
| 693 | PSRCCODEINFOW, PVOID |
| 694 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 695 | |
Vincent BĂ©ron | 297ef3a | 2005-11-04 11:16:48 +0000 | [diff] [blame] | 696 | typedef BOOL (CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACK)( |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 697 | PSOURCEFILE pSourceFile, PVOID UserContext |
| 698 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 699 | typedef BOOL (CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACKW)( |
| 700 | PSOURCEFILEW pSourceFile, PVOID UserContext |
| 701 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 702 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 703 | typedef BOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACK)( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 704 | PCSTR ModuleName, ULONG BaseOfDll, PVOID UserContext |
| 705 | ); |
| 706 | typedef BOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACK64)( |
| 707 | PCSTR, DWORD64, PVOID |
| 708 | ); |
| 709 | typedef BOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACKW64)( |
| 710 | PCWSTR, DWORD64, PVOID |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 711 | ); |
| 712 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 713 | typedef BOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK)( |
Francois Gouget | 98d63f3 | 2007-09-18 00:40:19 +0200 | [diff] [blame] | 714 | PCSTR, ULONG, ULONG, PVOID |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 715 | ); |
| 716 | typedef BOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACKW)( |
Francois Gouget | 98d63f3 | 2007-09-18 00:40:19 +0200 | [diff] [blame] | 717 | PCWSTR, ULONG, ULONG, PVOID |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 718 | ); |
| 719 | typedef BOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64)( |
| 720 | PCSTR, DWORD64, ULONG, PVOID |
| 721 | ); |
| 722 | typedef BOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64W)( |
| 723 | PCWSTR, DWORD64, ULONG, PVOID |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 724 | ); |
| 725 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 726 | typedef PVOID (CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK)( |
| 727 | HANDLE, DWORD, PVOID |
| 728 | ); |
| 729 | typedef PVOID (CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK64)( |
| 730 | HANDLE, ULONG64, ULONG64 |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 731 | ); |
| 732 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 733 | typedef BOOL (CALLBACK *PSYMBOL_REGISTERED_CALLBACK)( |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 734 | HANDLE hProcess, ULONG ActionCode, PVOID CallbackData, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 735 | PVOID UserContext |
| 736 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 737 | typedef BOOL (CALLBACK *PSYMBOL_REGISTERED_CALLBACK64)( |
| 738 | HANDLE, ULONG, ULONG64, ULONG64 |
| 739 | ); |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 740 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 741 | typedef BOOL (CALLBACK *DIGEST_FUNCTION)( |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 742 | DIGEST_HANDLE refdata, PBYTE pData, DWORD dwLength |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 743 | ); |
| 744 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 745 | typedef BOOL (CALLBACK *PREAD_PROCESS_MEMORY_ROUTINE)( |
Francois Gouget | faab0c7 | 2007-09-18 00:40:34 +0200 | [diff] [blame] | 746 | HANDLE hProcess, DWORD lpBaseAddress, PVOID lpBuffer, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 747 | DWORD nSize, PDWORD lpNumberOfBytesRead |
| 748 | ); |
| 749 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 750 | typedef BOOL (CALLBACK *PREAD_PROCESS_MEMORY_ROUTINE64)( |
| 751 | HANDLE hProcess, DWORD64 lpBaseAddress, PVOID lpBuffer, |
| 752 | DWORD nSize, LPDWORD lpNumberOfBytesRead |
| 753 | ); |
| 754 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 755 | typedef PVOID (CALLBACK *PFUNCTION_TABLE_ACCESS_ROUTINE)( |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 756 | HANDLE hProcess, DWORD AddrBase |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 757 | ); |
| 758 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 759 | typedef PVOID (CALLBACK *PFUNCTION_TABLE_ACCESS_ROUTINE64)( |
| 760 | HANDLE hProcess, DWORD64 AddrBase |
| 761 | ); |
| 762 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 763 | typedef DWORD (CALLBACK *PGET_MODULE_BASE_ROUTINE)( |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 764 | HANDLE hProcess, DWORD ReturnAddress); |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 765 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 766 | typedef DWORD (CALLBACK *PGET_MODULE_BASE_ROUTINE64)( |
| 767 | HANDLE hProcess, DWORD64 ReturnAddress); |
| 768 | |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 769 | typedef DWORD (CALLBACK *PTRANSLATE_ADDRESS_ROUTINE)( |
Francois Gouget | faab0c7 | 2007-09-18 00:40:34 +0200 | [diff] [blame] | 770 | HANDLE hProcess, HANDLE hThread, LPADDRESS lpaddr |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 771 | ); |
| 772 | |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 773 | typedef DWORD (CALLBACK *PTRANSLATE_ADDRESS_ROUTINE64)( |
| 774 | HANDLE hProcess, HANDLE hThread, LPADDRESS64 lpaddr |
| 775 | ); |
| 776 | |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 777 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 778 | /*********************************************************************** |
| 779 | * Functions |
| 780 | */ |
| 781 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 782 | BOOL WINAPI BindImage( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 783 | PCSTR ImageName, PCSTR DllPath, PCSTR SymbolPath |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 784 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 785 | BOOL WINAPI BindImageEx( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 786 | DWORD Flags, PCSTR ImageName, PCSTR DllPath, PCSTR SymbolPath, |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 787 | PIMAGEHLP_STATUS_ROUTINE StatusRoutine |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 788 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 789 | PIMAGE_NT_HEADERS WINAPI CheckSumMappedFile( |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 790 | LPVOID BaseAddress, DWORD FileLength, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 791 | LPDWORD HeaderSum, LPDWORD CheckSum |
| 792 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 793 | BOOL WINAPI EnumDirTree( |
| 794 | HANDLE, PCSTR, PCSTR, PSTR, PENUMDIRTREE_CALLBACK, PVOID |
| 795 | ); |
| 796 | BOOL WINAPI EnumDirTreeW( |
| 797 | HANDLE, PCWSTR, PCWSTR, PWSTR, PENUMDIRTREE_CALLBACKW, PVOID |
| 798 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 799 | BOOL WINAPI EnumerateLoadedModules( |
| 800 | HANDLE hProcess, |
| 801 | PENUMLOADED_MODULES_CALLBACK EnumLoadedModulesCallback, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 802 | PVOID UserContext |
| 803 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 804 | BOOL WINAPI EnumerateLoadedModules64( |
| 805 | HANDLE, PENUMLOADED_MODULES_CALLBACK64, PVOID |
| 806 | ); |
| 807 | BOOL WINAPI EnumerateLoadedModulesW64( |
| 808 | HANDLE, PENUMLOADED_MODULES_CALLBACKW64, PVOID |
| 809 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 810 | HANDLE WINAPI FindDebugInfoFile( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 811 | PCSTR FileName, PCSTR SymbolPath, PSTR DebugFilePath |
| 812 | ); |
| 813 | HANDLE WINAPI FindDebugInfoFileEx( |
| 814 | PCSTR, PCSTR, PSTR, PFIND_DEBUG_FILE_CALLBACK, PVOID |
| 815 | ); |
| 816 | HANDLE WINAPI FindDebugInfoFileExW( |
| 817 | PCWSTR, PCWSTR, PWSTR, PFIND_DEBUG_FILE_CALLBACKW, PVOID |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 818 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 819 | HANDLE WINAPI FindExecutableImage( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 820 | PCSTR, PCSTR, PSTR |
| 821 | ); |
| 822 | HANDLE WINAPI FindExecutableImageEx( |
| 823 | PCSTR, PCSTR, PSTR, PFIND_EXE_FILE_CALLBACK, PVOID |
| 824 | ); |
| 825 | HANDLE WINAPI FindExecutableImageExW( |
| 826 | PCWSTR, PCWSTR, PWSTR, PFIND_EXE_FILE_CALLBACKW, PVOID |
| 827 | ); |
| 828 | BOOL WINAPI FindFileInPath( |
| 829 | HANDLE, PCSTR, PCSTR, PVOID, DWORD, DWORD, DWORD, |
| 830 | PSTR, PFINDFILEINPATHCALLBACK, PVOID |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 831 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 832 | BOOL WINAPI GetImageConfigInformation( |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 833 | PLOADED_IMAGE LoadedImage, |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 834 | PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 835 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 836 | DWORD WINAPI GetImageUnusedHeaderBytes( |
| 837 | PLOADED_IMAGE LoadedImage, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 838 | LPDWORD SizeUnusedHeaderBytes |
| 839 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 840 | DWORD WINAPI GetTimestampForLoadedLibrary( |
| 841 | HMODULE Module |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 842 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 843 | BOOL WINAPI ImageAddCertificate( |
Juan Lang | 01b083c | 2007-08-27 16:32:29 -0700 | [diff] [blame] | 844 | HANDLE FileHandle, LPWIN_CERTIFICATE Certificate, PDWORD Index |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 845 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 846 | PVOID WINAPI ImageDirectoryEntryToData( |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 847 | PVOID Base, BOOLEAN MappedAsImage, USHORT DirectoryEntry, PULONG Size |
| 848 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 849 | BOOL WINAPI ImageEnumerateCertificates( |
| 850 | HANDLE FileHandle, WORD TypeFilter, PDWORD CertificateCount, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 851 | PDWORD Indices, DWORD IndexCount |
| 852 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 853 | BOOL WINAPI ImageGetCertificateData( |
| 854 | HANDLE FileHandle, DWORD CertificateIndex, |
Juan Lang | 01b083c | 2007-08-27 16:32:29 -0700 | [diff] [blame] | 855 | LPWIN_CERTIFICATE Certificate, PDWORD RequiredLength |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 856 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 857 | BOOL WINAPI ImageGetCertificateHeader( |
| 858 | HANDLE FileHandle, DWORD CertificateIndex, |
Juan Lang | 01b083c | 2007-08-27 16:32:29 -0700 | [diff] [blame] | 859 | LPWIN_CERTIFICATE Certificateheader |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 860 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 861 | BOOL WINAPI ImageGetDigestStream( |
| 862 | HANDLE FileHandle, DWORD DigestLevel, |
| 863 | DIGEST_FUNCTION DigestFunction, DIGEST_HANDLE DigestHandle |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 864 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 865 | PLOADED_IMAGE WINAPI ImageLoad( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 866 | PCSTR DllName, PCSTR DllPath |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 867 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 868 | PIMAGE_NT_HEADERS WINAPI ImageNtHeader( |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 869 | PVOID Base |
| 870 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 871 | BOOL WINAPI ImageRemoveCertificate( |
| 872 | HANDLE FileHandle, DWORD Index |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 873 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 874 | PIMAGE_SECTION_HEADER WINAPI ImageRvaToSection( |
| 875 | PIMAGE_NT_HEADERS NtHeaders, PVOID Base, ULONG Rva |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 876 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 877 | PVOID WINAPI ImageRvaToVa( |
| 878 | PIMAGE_NT_HEADERS NtHeaders, PVOID Base, ULONG Rva, |
| 879 | PIMAGE_SECTION_HEADER *LastRvaSection |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 880 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 881 | BOOL WINAPI ImageUnload( |
| 882 | PLOADED_IMAGE LoadedImage |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 883 | ); |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 884 | LPAPI_VERSION WINAPI ImagehlpApiVersion( |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 885 | void |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 886 | ); |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 887 | LPAPI_VERSION WINAPI ImagehlpApiVersionEx( |
| 888 | LPAPI_VERSION AppVersion |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 889 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 890 | BOOL WINAPI MakeSureDirectoryPathExists( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 891 | PCSTR DirPath |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 892 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 893 | BOOL WINAPI MapAndLoad( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 894 | PCSTR ImageName, PCSTR DllPath, PLOADED_IMAGE LoadedImage, |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 895 | BOOL DotDll, BOOL ReadOnly |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 896 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 897 | PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 898 | HANDLE FileHandle, PCSTR FileName, |
| 899 | PCSTR SymbolPath, ULONG ImageBase |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 900 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 901 | DWORD WINAPI MapFileAndCheckSumA( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 902 | PCSTR Filename, PDWORD HeaderSum, PDWORD CheckSum |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 903 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 904 | DWORD WINAPI MapFileAndCheckSumW( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 905 | PCWSTR Filename, PDWORD HeaderSum, PDWORD CheckSum |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 906 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 907 | BOOL WINAPI ReBaseImage( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 908 | PCSTR CurrentImageName, PCSTR SymbolPath, BOOL fReBase, |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 909 | BOOL fRebaseSysfileOk, BOOL fGoingDown, ULONG CheckImageSize, |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 910 | ULONG *OldImageSize, ULONG_PTR *OldImageBase, ULONG *NewImageSize, |
| 911 | ULONG_PTR *NewImageBase, ULONG TimeStamp |
| 912 | ); |
| 913 | BOOL WINAPI ReBaseImage64( |
| 914 | PCSTR CurrentImageName, PCSTR SymbolPath, BOOL fReBase, |
| 915 | BOOL fRebaseSysfileOk, BOOL fGoingDown, ULONG CheckImageSize, |
| 916 | ULONG *OldImageSize, ULONG64 *OldImageBase, ULONG *NewImageSize, |
| 917 | ULONG64 *NewImageBase, ULONG TimeStamp |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 918 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 919 | BOOL WINAPI RemovePrivateCvSymbolic( |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 920 | PCHAR DebugData, PCHAR *NewDebugData, ULONG *NewDebugSize |
| 921 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 922 | BOOL WINAPI SearchTreeForFile( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 923 | PCSTR RootPath, PCSTR InputPathName, PSTR OutputPathBuffer |
| 924 | ); |
| 925 | BOOL WINAPI SearchTreeForFileW( |
| 926 | PCWSTR RootPath, PCWSTR InputPathName, PWSTR OutputPathBuffer |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 927 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 928 | BOOL WINAPI SetImageConfigInformation( |
| 929 | PLOADED_IMAGE LoadedImage, |
| 930 | PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 931 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 932 | BOOL WINAPI SplitSymbols( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 933 | PSTR ImageName, PCSTR SymbolsPath, |
| 934 | PSTR SymbolFilePath, ULONG Flags |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 935 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 936 | BOOL WINAPI StackWalk( |
| 937 | DWORD MachineType, HANDLE hProcess, HANDLE hThread, |
Steven Edwards | ad4a2b9 | 2003-10-09 19:45:07 +0000 | [diff] [blame] | 938 | LPSTACKFRAME StackFrame, PVOID ContextRecord, |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 939 | PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine, |
| 940 | PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine, |
| 941 | PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine, |
| 942 | PTRANSLATE_ADDRESS_ROUTINE TranslateAddress |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 943 | ); |
Vitaliy Margolen | f09ed5e | 2005-11-28 10:59:51 +0100 | [diff] [blame] | 944 | BOOL WINAPI StackWalk64( |
| 945 | DWORD MachineType, HANDLE hProcess, HANDLE hThread, |
| 946 | LPSTACKFRAME64 StackFrame, PVOID ContextRecord, |
| 947 | PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, |
| 948 | PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, |
| 949 | PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, |
| 950 | PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress |
| 951 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 952 | BOOL WINAPI SymAddSymbol( |
| 953 | HANDLE, ULONG64, PCSTR, DWORD64, DWORD, DWORD |
| 954 | ); |
| 955 | BOOL WINAPI SymAddSymbolW( |
| 956 | HANDLE, ULONG64, PCWSTR, DWORD64, DWORD, DWORD |
| 957 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 958 | BOOL WINAPI SymCleanup( |
| 959 | HANDLE hProcess |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 960 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 961 | BOOL WINAPI SymDeleteSymbol( |
| 962 | HANDLE, ULONG64, PCSTR, DWORD64, DWORD |
| 963 | ); |
| 964 | BOOL WINAPI SymDeleteSymbolW( |
| 965 | HANDLE, ULONG64, PCWSTR, DWORD64, DWORD |
| 966 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 967 | BOOL WINAPI SymEnumerateModules( |
| 968 | HANDLE hProcess, PSYM_ENUMMODULES_CALLBACK EnumModulesCallback, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 969 | PVOID UserContext |
| 970 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 971 | BOOL WINAPI SymEnumerateModules64( |
| 972 | HANDLE, PSYM_ENUMMODULES_CALLBACK64, PVOID |
| 973 | ); |
| 974 | BOOL WINAPI SymEnumerateModulesW64( |
| 975 | HANDLE, PSYM_ENUMMODULES_CALLBACKW64, PVOID |
| 976 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 977 | BOOL WINAPI SymEnumerateSymbols( |
| 978 | HANDLE hProcess, DWORD BaseOfDll, |
| 979 | PSYM_ENUMSYMBOLS_CALLBACK EnumSymbolsCallback, PVOID UserContext |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 980 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 981 | BOOL WINAPI SymEnumerateSymbolsW( |
| 982 | HANDLE hProcess, DWORD BaseOfDll, |
| 983 | PSYM_ENUMSYMBOLS_CALLBACKW EnumSymbolsCallback, PVOID UserContext |
| 984 | ); |
| 985 | BOOL WINAPI SymEnumerateSymbols64( |
| 986 | HANDLE, ULONG64, PSYM_ENUMSYMBOLS_CALLBACK64, PVOID |
| 987 | ); |
| 988 | BOOL WINAPI SymEnumerateSymbolsW64( |
| 989 | HANDLE, ULONG64, PSYM_ENUMSYMBOLS_CALLBACK64W, PVOID |
| 990 | ); |
| 991 | BOOL WINAPI SymEnumLines( |
| 992 | HANDLE, ULONG64, PCSTR, PCSTR, PSYM_ENUMLINES_CALLBACK, PVOID |
| 993 | ); |
| 994 | BOOL WINAPI SymEnumLinesW( |
| 995 | HANDLE, ULONG64, PCWSTR, PCWSTR, PSYM_ENUMLINES_CALLBACKW, PVOID |
| 996 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 997 | BOOL WINAPI SymEnumSourceFiles( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 998 | HANDLE hProcess, ULONG64 ModBase, PCSTR Mask, |
Vincent BĂ©ron | 297ef3a | 2005-11-04 11:16:48 +0000 | [diff] [blame] | 999 | PSYM_ENUMSOURCEFILES_CALLBACK cbSrcFiles, PVOID UserContext |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 1000 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1001 | BOOL WINAPI SymEnumSourceFilesW( |
| 1002 | HANDLE hProcess, ULONG64 ModBase, PCWSTR Mask, |
| 1003 | PSYM_ENUMSOURCEFILES_CALLBACKW cbSrcFiles, PVOID UserContext |
| 1004 | ); |
| 1005 | BOOL WINAPI SymEnumSourceLines( |
| 1006 | HANDLE, ULONG64, PCSTR, PCSTR, DWORD, DWORD, PSYM_ENUMLINES_CALLBACK, PVOID |
| 1007 | ); |
| 1008 | BOOL WINAPI SymEnumSourceLinesW( |
| 1009 | HANDLE, ULONG64, PCWSTR, PCWSTR, DWORD, DWORD, PSYM_ENUMLINES_CALLBACKW, PVOID |
| 1010 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 1011 | BOOL WINAPI SymEnumSymbols( |
| 1012 | HANDLE hProcess, DWORD BaseOfDll, PCSTR Mask, |
| 1013 | PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, PVOID UserContext |
| 1014 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1015 | BOOL WINAPI SymEnumSymbolsW( |
| 1016 | HANDLE hProcess, DWORD BaseOfDll, PCWSTR Mask, |
| 1017 | PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, PVOID UserContext |
| 1018 | ); |
| 1019 | BOOL WINAPI SymEnumSymbolsForAddr( |
| 1020 | HANDLE, DWORD64, PSYM_ENUMERATESYMBOLS_CALLBACK, PVOID |
| 1021 | ); |
| 1022 | BOOL WINAPI SymEnumSymbolsForAddrW( |
| 1023 | HANDLE, DWORD64, PSYM_ENUMERATESYMBOLS_CALLBACKW, PVOID |
| 1024 | ); |
| 1025 | BOOL WINAPI SymEnumTypes( |
| 1026 | HANDLE, ULONG64, PSYM_ENUMERATESYMBOLS_CALLBACK, PVOID |
| 1027 | ); |
| 1028 | BOOL WINAPI SymEnumTypesW( |
| 1029 | HANDLE, ULONG64, PSYM_ENUMERATESYMBOLS_CALLBACKW, PVOID |
| 1030 | ); |
| 1031 | HANDLE WINAPI SymFindExecutableImage( |
| 1032 | HANDLE, PCSTR, PSTR, PFIND_EXE_FILE_CALLBACK, PVOID |
| 1033 | ); |
| 1034 | HANDLE WINAPI SymFindExecutableImageW( |
| 1035 | HANDLE, PCWSTR, PWSTR, PFIND_EXE_FILE_CALLBACKW, PVOID |
| 1036 | ); |
| 1037 | BOOL WINAPI SymFindFileInPath( |
| 1038 | HANDLE, PCSTR, PCSTR, PVOID, DWORD, DWORD, DWORD, |
| 1039 | PSTR, PFINDFILEINPATHCALLBACK, PVOID |
| 1040 | ); |
| 1041 | BOOL WINAPI SymFindFileInPathW( |
| 1042 | HANDLE, PCWSTR, PCWSTR, PVOID, DWORD, DWORD, DWORD, |
| 1043 | PWSTR, PFINDFILEINPATHCALLBACKW, PVOID |
| 1044 | ); |
| 1045 | BOOL WINAPI SymFromAddr( |
| 1046 | HANDLE, DWORD64, DWORD64*, SYMBOL_INFO* |
| 1047 | ); |
| 1048 | BOOL WINAPI SymFromAddrW( |
| 1049 | HANDLE, DWORD64, DWORD64*, SYMBOL_INFOW* |
| 1050 | ); |
| 1051 | BOOL WINAPI SymFromIndex( |
| 1052 | HANDLE, ULONG64, DWORD, PSYMBOL_INFO |
| 1053 | ); |
| 1054 | BOOL WINAPI SymFromIndexW( |
| 1055 | HANDLE, ULONG64, DWORD, PSYMBOL_INFOW |
| 1056 | ); |
| 1057 | BOOL WINAPI SymFromName( |
| 1058 | HANDLE, PCSTR, PSYMBOL_INFO |
| 1059 | ); |
| 1060 | BOOL WINAPI SymFromNameW( |
| 1061 | HANDLE, PCWSTR, PSYMBOL_INFOW |
| 1062 | ); |
| 1063 | BOOL WINAPI SymFromToken( |
| 1064 | HANDLE, DWORD64, DWORD, PSYMBOL_INFO |
| 1065 | ); |
| 1066 | BOOL WINAPI SymFromTokenW( |
| 1067 | HANDLE, DWORD64, DWORD, PSYMBOL_INFOW |
| 1068 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1069 | PVOID WINAPI SymFunctionTableAccess( |
| 1070 | HANDLE hProcess, DWORD AddrBase |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1071 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1072 | PVOID WINAPI SymFunctionTableAccess64( |
| 1073 | HANDLE hProcess, DWORD64 AddrBase |
| 1074 | ); |
| 1075 | ULONG WINAPI SymGetFileLineOffsets64( |
| 1076 | HANDLE, PCSTR, PCSTR, PDWORD64, ULONG |
| 1077 | ); |
| 1078 | PCHAR WINAPI SymGetHomeDirectory( |
| 1079 | DWORD, PSTR, size_t |
| 1080 | ); |
| 1081 | PWSTR WINAPI SymGetHomeDirectoryW( |
| 1082 | DWORD, PWSTR, size_t |
| 1083 | ); |
| 1084 | BOOL WINAPI SymGetLineFromAddr( |
| 1085 | HANDLE, DWORD, PDWORD, PIMAGEHLP_LINE |
| 1086 | ); |
| 1087 | BOOL WINAPI SymGetLineFromAddrW( |
| 1088 | HANDLE, DWORD, PDWORD, PIMAGEHLP_LINEW |
| 1089 | ); |
| 1090 | BOOL WINAPI SymGetLineFromAddr64( |
| 1091 | HANDLE, DWORD64, PDWORD, PIMAGEHLP_LINE64 |
| 1092 | ); |
| 1093 | BOOL WINAPI SymGetLineFromAddrW64( |
| 1094 | HANDLE, DWORD64, PDWORD, PIMAGEHLP_LINEW64 |
| 1095 | ); |
| 1096 | BOOL WINAPI SymGetLineFromName( |
| 1097 | HANDLE, PCSTR, PCSTR, DWORD, PLONG, PIMAGEHLP_LINE |
| 1098 | ); |
| 1099 | BOOL WINAPI SymGetLineFromName64( |
| 1100 | HANDLE, PCSTR, PCSTR, DWORD, PLONG, PIMAGEHLP_LINE64 |
| 1101 | ); |
| 1102 | BOOL WINAPI SymGetLineFromNameW64( |
| 1103 | HANDLE, PCWSTR, PCWSTR, DWORD, PLONG, PIMAGEHLP_LINEW64 |
| 1104 | ); |
| 1105 | BOOL WINAPI SymGetLineNext( |
| 1106 | HANDLE, PIMAGEHLP_LINE |
| 1107 | ); |
| 1108 | BOOL WINAPI SymGetLineNextW( |
| 1109 | HANDLE, PIMAGEHLP_LINEW |
| 1110 | ); |
| 1111 | BOOL WINAPI SymGetLineNext64( |
| 1112 | HANDLE, PIMAGEHLP_LINE64 |
| 1113 | ); |
| 1114 | BOOL WINAPI SymGetLineNextW64( |
| 1115 | HANDLE, PIMAGEHLP_LINEW64 |
| 1116 | ); |
| 1117 | BOOL WINAPI SymGetLinePrev( |
| 1118 | HANDLE, PIMAGEHLP_LINE |
| 1119 | ); |
| 1120 | BOOL WINAPI SymGetLinePrevW( |
| 1121 | HANDLE, PIMAGEHLP_LINEW |
| 1122 | ); |
| 1123 | BOOL WINAPI SymGetLinePrev64( |
| 1124 | HANDLE, PIMAGEHLP_LINE64 |
| 1125 | ); |
| 1126 | BOOL WINAPI SymGetLinePrevW64( |
| 1127 | HANDLE, PIMAGEHLP_LINEW64 |
| 1128 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1129 | DWORD WINAPI SymGetModuleBase( |
| 1130 | HANDLE hProcess, DWORD dwAddr |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1131 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1132 | BOOL WINAPI SymGetModuleInfo( |
| 1133 | HANDLE hProcess, DWORD dwAddr, |
| 1134 | PIMAGEHLP_MODULE ModuleInfo |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1135 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1136 | BOOL WINAPI SymGetModuleInfoW( |
| 1137 | HANDLE, DWORD, PIMAGEHLP_MODULEW |
| 1138 | ); |
| 1139 | BOOL WINAPI SymGetModuleInfo64( |
| 1140 | HANDLE, DWORD64, PIMAGEHLP_MODULE64 |
| 1141 | ); |
| 1142 | BOOL WINAPI SymGetModuleInfoW64( |
| 1143 | HANDLE, DWORD64, PIMAGEHLP_MODULEW64 |
| 1144 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1145 | DWORD WINAPI SymGetOptions( |
Juergen Schmied | ebc2b77 | 1998-11-14 18:59:30 +0000 | [diff] [blame] | 1146 | void |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1147 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1148 | BOOL WINAPI SymGetScope( |
| 1149 | HANDLE, ULONG64, DWORD, PSYMBOL_INFO |
| 1150 | ); |
| 1151 | BOOL WINAPI SymGetScopeW( |
| 1152 | HANDLE, ULONG64, DWORD, PSYMBOL_INFOW |
| 1153 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1154 | BOOL WINAPI SymGetSearchPath( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1155 | HANDLE hProcess, PSTR szSearchPath, DWORD SearchPathLength |
| 1156 | ); |
| 1157 | BOOL WINAPI SymGetSearchPathW( |
| 1158 | HANDLE hProcess, PWSTR szSearchPath, DWORD SearchPathLength |
| 1159 | ); |
| 1160 | BOOL WINAPI SymGetSourceFile( |
| 1161 | HANDLE, ULONG64, PCSTR, PCSTR, PSTR, DWORD |
| 1162 | ); |
| 1163 | BOOL WINAPI SymGetSourceFileW( |
| 1164 | HANDLE, ULONG64, PCWSTR, PCWSTR, PWSTR, DWORD |
| 1165 | ); |
| 1166 | BOOL WINAPI SymGetSourceFileFromToken( |
| 1167 | HANDLE, PVOID, PCSTR, PSTR, DWORD |
| 1168 | ); |
| 1169 | BOOL WINAPI SymGetSourceFileFromTokenW( |
| 1170 | HANDLE, PVOID, PCWSTR, PWSTR, DWORD |
| 1171 | ); |
| 1172 | BOOL WINAPI SymGetSourceFileToken( |
| 1173 | HANDLE, ULONG64, PCSTR, PVOID*, DWORD* |
| 1174 | ); |
| 1175 | BOOL WINAPI SymGetSourceFileTokenW( |
| 1176 | HANDLE, ULONG64, PCWSTR, PVOID*, DWORD* |
| 1177 | ); |
| 1178 | BOOL WINAPI SymGetSourceVarFromToken( |
| 1179 | HANDLE, PVOID, PCSTR, PCSTR, PSTR, DWORD |
| 1180 | ); |
| 1181 | BOOL WINAPI SymGetSourceVarFromTokenW( |
| 1182 | HANDLE, PVOID, PCWSTR, PCWSTR, PWSTR, DWORD |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1183 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1184 | BOOL WINAPI SymGetSymFromAddr( |
| 1185 | HANDLE hProcess, DWORD dwAddr, |
| 1186 | PDWORD pdwDisplacement, PIMAGEHLP_SYMBOL Symbol |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1187 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1188 | BOOL WINAPI SymGetSymFromAddr64( |
| 1189 | HANDLE, DWORD64, PDWORD64, PIMAGEHLP_SYMBOL64 |
| 1190 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1191 | BOOL WINAPI SymGetSymFromName( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1192 | HANDLE hProcess, PCSTR Name, PIMAGEHLP_SYMBOL Symbol |
| 1193 | ); |
| 1194 | BOOL WINAPI SymGetSymFromName64( |
| 1195 | HANDLE, PCSTR, PIMAGEHLP_SYMBOL64 |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1196 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1197 | BOOL WINAPI SymGetSymNext( |
| 1198 | HANDLE hProcess, PIMAGEHLP_SYMBOL Symbol |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1199 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1200 | BOOL WINAPI SymGetSymNext64( |
| 1201 | HANDLE, PIMAGEHLP_SYMBOL64 |
| 1202 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1203 | BOOL WINAPI SymGetSymPrev( |
| 1204 | HANDLE hProcess, PIMAGEHLP_SYMBOL Symbol |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1205 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1206 | BOOL WINAPI SymGetSymPrev64( |
| 1207 | HANDLE, PIMAGEHLP_SYMBOL64 |
| 1208 | ); |
| 1209 | BOOL WINAPI SymGetTypeFromName( |
| 1210 | HANDLE, ULONG64, PCSTR, PSYMBOL_INFO |
| 1211 | ); |
| 1212 | BOOL WINAPI SymGetTypeFromNameW( |
| 1213 | HANDLE, ULONG64, PCWSTR, PSYMBOL_INFOW |
| 1214 | ); |
| 1215 | BOOL WINAPI SymGetTypeInfo( |
| 1216 | HANDLE, DWORD64, ULONG, IMAGEHLP_SYMBOL_TYPE_INFO, PVOID |
| 1217 | ); |
| 1218 | BOOL WINAPI SymGetTypeInfoEx( |
| 1219 | HANDLE, DWORD64, PIMAGEHLP_GET_TYPE_INFO_PARAMS |
| 1220 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1221 | BOOL WINAPI SymInitialize( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1222 | HANDLE hProcess, PCSTR UserSearchPath, BOOL fInvadeProcess |
| 1223 | ); |
| 1224 | BOOL WINAPI SymInitializeW( |
| 1225 | HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeProcess |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1226 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 1227 | DWORD WINAPI SymLoadModule( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1228 | HANDLE hProcess, HANDLE hFile, PCSTR ImageName, PCSTR ModuleName, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1229 | DWORD BaseOfDll, DWORD SizeOfDll |
| 1230 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1231 | DWORD64 WINAPI SymLoadModule64( |
| 1232 | HANDLE, HANDLE, PCSTR, PCSTR, DWORD64, DWORD |
| 1233 | ); |
| 1234 | DWORD64 WINAPI SymLoadModuleEx( |
| 1235 | HANDLE, HANDLE, PCSTR, PCSTR, DWORD64, DWORD, PMODLOAD_DATA, DWORD |
| 1236 | ); |
| 1237 | DWORD64 WINAPI SymLoadModuleExW( |
| 1238 | HANDLE, HANDLE, PCWSTR, PCWSTR, DWORD64, DWORD, PMODLOAD_DATA, DWORD |
| 1239 | ); |
| 1240 | BOOL WINAPI SymMatchFileName( |
| 1241 | PCSTR, PCSTR, PSTR*, PSTR* |
| 1242 | ); |
| 1243 | BOOL WINAPI SymMatchFileNameW( |
| 1244 | PCWSTR, PCWSTR, PWSTR*, PWSTR* |
| 1245 | ); |
| 1246 | BOOL WINAPI SymMatchString( |
| 1247 | PCSTR, PCSTR, BOOL |
| 1248 | ); |
| 1249 | BOOL WINAPI SymMatchStringA( |
| 1250 | PCSTR, PCSTR, BOOL |
| 1251 | ); |
| 1252 | BOOL WINAPI SymMatchStringW( |
| 1253 | PCWSTR, PCWSTR, BOOL |
| 1254 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1255 | BOOL WINAPI SymRegisterCallback( |
| 1256 | HANDLE hProcess, PSYMBOL_REGISTERED_CALLBACK CallbackFunction, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1257 | PVOID UserContext |
| 1258 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1259 | BOOL WINAPI SymRegisterCallback64( |
| 1260 | HANDLE, PSYMBOL_REGISTERED_CALLBACK64, ULONG64 |
| 1261 | ); |
| 1262 | BOOL WINAPI SymRegisterCallbackW64( |
| 1263 | HANDLE, PSYMBOL_REGISTERED_CALLBACK64, ULONG64 |
| 1264 | ); |
| 1265 | BOOL WINAPI SymRegisterFunctionEntryCallback( |
| 1266 | HANDLE, PSYMBOL_FUNCENTRY_CALLBACK, PVOID |
| 1267 | ); |
| 1268 | BOOL WINAPI SymRegisterFunctionEntryCallback64( |
| 1269 | HANDLE, PSYMBOL_FUNCENTRY_CALLBACK64, ULONG64 |
| 1270 | ); |
| 1271 | BOOL WINAPI SymSearch( |
| 1272 | HANDLE, ULONG64, DWORD, DWORD, PCSTR, DWORD64, |
| 1273 | PSYM_ENUMERATESYMBOLS_CALLBACK, PVOID, DWORD |
| 1274 | ); |
| 1275 | BOOL WINAPI SymSearchW( |
| 1276 | HANDLE, ULONG64, DWORD, DWORD, PCWSTR, DWORD64, |
| 1277 | PSYM_ENUMERATESYMBOLS_CALLBACKW, PVOID, DWORD |
| 1278 | ); |
Eric Pouech | f35d1ca | 2004-04-05 22:50:45 +0000 | [diff] [blame] | 1279 | DWORD WINAPI SymSetContext( |
| 1280 | HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame, |
| 1281 | PIMAGEHLP_CONTEXT Context |
| 1282 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1283 | PCHAR WINAPI SymSetHomeDirectory( |
| 1284 | HANDLE, PCSTR |
| 1285 | ); |
| 1286 | PWSTR WINAPI SymSetHomeDirectoryW( |
| 1287 | HANDLE, PCWSTR |
| 1288 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1289 | DWORD WINAPI SymSetOptions( |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1290 | DWORD SymOptions |
| 1291 | ); |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1292 | BOOL WINAPI SymSetParentWindow( |
| 1293 | HWND |
| 1294 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1295 | BOOL WINAPI SymSetSearchPath( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1296 | HANDLE hProcess, PCSTR szSearchPath |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1297 | ); |
Francois Gouget | 4035b22 | 2007-09-18 00:40:42 +0200 | [diff] [blame] | 1298 | BOOL WINAPI SymSetSearchPathW( |
| 1299 | HANDLE hProcess, PCWSTR szSearchPath |
| 1300 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1301 | BOOL WINAPI SymUnDName( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1302 | PIMAGEHLP_SYMBOL sym, PSTR UnDecName, DWORD UnDecNameLength |
| 1303 | ); |
| 1304 | BOOL WINAPI SymUnDName64( |
| 1305 | PIMAGEHLP_SYMBOL64, PSTR, DWORD |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1306 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1307 | BOOL WINAPI SymUnloadModule( |
| 1308 | HANDLE hProcess, DWORD BaseOfDll |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1309 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1310 | BOOL WINAPI TouchFileTimes( |
| 1311 | HANDLE FileHandle, LPSYSTEMTIME lpSystemTime |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1312 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1313 | DWORD WINAPI UnDecorateSymbolName( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1314 | PCSTR DecoratedName, PSTR UnDecoratedName, |
| 1315 | DWORD UndecoratedLength, DWORD Flags |
| 1316 | ); |
| 1317 | DWORD WINAPI UnDecorateSymbolNameW( |
| 1318 | PCWSTR DecoratedName, PWSTR UnDecoratedName, |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1319 | DWORD UndecoratedLength, DWORD Flags |
| 1320 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1321 | BOOL WINAPI UnMapAndLoad( |
| 1322 | PLOADED_IMAGE LoadedImage |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1323 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1324 | BOOL WINAPI UnmapDebugInformation( |
| 1325 | PIMAGE_DEBUG_INFORMATION DebugInfo |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1326 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1327 | BOOL WINAPI UpdateDebugInfoFile( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1328 | PCSTR ImageFileName, PCSTR SymbolPath, |
| 1329 | PSTR DebugFilePath, PIMAGE_NT_HEADERS32 NtHeaders |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1330 | ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1331 | BOOL WINAPI UpdateDebugInfoFileEx( |
Francois Gouget | b86570d | 2007-08-04 03:15:44 +0200 | [diff] [blame] | 1332 | PCSTR ImageFileName, PCSTR SymbolPath, PSTR DebugFilePath, |
| 1333 | PIMAGE_NT_HEADERS32 NtHeaders, DWORD OldChecksum |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1334 | ); |
| 1335 | |
Patrik Stridvall | 14da7b1 | 1999-06-12 10:53:06 +0000 | [diff] [blame] | 1336 | #ifdef __cplusplus |
| 1337 | } /* extern "C" */ |
| 1338 | #endif /* defined(__cplusplus) */ |
| 1339 | |
Patrik Stridvall | 091e785 | 1998-10-11 17:04:17 +0000 | [diff] [blame] | 1340 | #endif /* __WINE_IMAGEHLP_H */ |