1998-10-11 19:04:17 +02:00
|
|
|
/*
|
|
|
|
* IMAGEHLP library
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "winbase.h"
|
2003-11-21 22:31:35 +01:00
|
|
|
#include "winternl.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "winerror.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "imagehlp.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
2000-11-25 02:28:09 +01:00
|
|
|
static WORD CalcCheckSum(DWORD StartValue, LPVOID BaseAddress, DWORD WordCount);
|
|
|
|
|
|
|
|
|
1998-10-11 19:04:17 +02:00
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* BindImage (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI BindImage(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCSTR ImageName, PCSTR DllPath, PCSTR SymbolPath)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
return BindImageEx(0, ImageName, DllPath, SymbolPath, NULL);
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* BindImageEx (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
2021-02-13 18:30:11 +01:00
|
|
|
BOOL WINAPI BindImageEx(DWORD flags, const char *module, const char *dll_path,
|
|
|
|
const char *symbol_path, PIMAGEHLP_STATUS_ROUTINE cb)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
2021-02-13 18:30:11 +01:00
|
|
|
const IMAGE_IMPORT_DESCRIPTOR *import;
|
|
|
|
LOADED_IMAGE image;
|
|
|
|
ULONG size;
|
|
|
|
|
|
|
|
TRACE("flags %#x, module %s, dll_path %s, symbol_path %s, cb %p.\n",
|
|
|
|
flags, debugstr_a(module), debugstr_a(dll_path), debugstr_a(symbol_path), cb);
|
|
|
|
|
|
|
|
if (!(flags & BIND_NO_UPDATE))
|
|
|
|
FIXME("Image modification is not implemented.\n");
|
|
|
|
if (flags & ~BIND_NO_UPDATE)
|
|
|
|
FIXME("Ignoring flags %#x.\n", flags);
|
|
|
|
|
|
|
|
if (!MapAndLoad(module, dll_path, &image, TRUE, TRUE))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
if (!(import = ImageDirectoryEntryToData(image.MappedAddress, FALSE, IMAGE_DIRECTORY_ENTRY_IMPORT, &size)))
|
|
|
|
{
|
|
|
|
UnMapAndLoad(&image);
|
|
|
|
return TRUE; /* no imports */
|
|
|
|
}
|
|
|
|
|
|
|
|
if (image.FileHeader->OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR_MAGIC)
|
|
|
|
{
|
|
|
|
FIXME("Unhandled architecture %#x.\n", image.FileHeader->OptionalHeader.Magic);
|
|
|
|
UnMapAndLoad(&image);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (; import->Name && import->FirstThunk; ++import)
|
|
|
|
{
|
|
|
|
char full_path[MAX_PATH];
|
|
|
|
IMAGE_THUNK_DATA *thunk;
|
|
|
|
const char *dll_name;
|
|
|
|
DWORD thunk_rva;
|
|
|
|
|
|
|
|
if (!(dll_name = ImageRvaToVa(image.FileHeader, image.MappedAddress, import->Name, 0)))
|
|
|
|
{
|
|
|
|
ERR("Failed to get VA for import name RVA %#x.\n", import->Name);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cb) cb(BindImportModule, module, dll_name, 0, 0);
|
|
|
|
|
|
|
|
if (!SearchPathA(dll_path, dll_name, 0, sizeof(full_path), full_path, 0))
|
|
|
|
{
|
|
|
|
ERR("Import %s was not found.\n", debugstr_a(dll_path));
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
thunk_rva = import->OriginalFirstThunk ? import->OriginalFirstThunk : import->FirstThunk;
|
|
|
|
if (!(thunk = ImageRvaToVa(image.FileHeader, image.MappedAddress, thunk_rva, 0)))
|
|
|
|
{
|
|
|
|
ERR("Failed to get VA for import thunk RVA %#x.\n", thunk_rva);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (; thunk->u1.Ordinal; ++thunk)
|
|
|
|
{
|
|
|
|
if (IMAGE_SNAP_BY_ORDINAL(thunk->u1.Ordinal))
|
|
|
|
{
|
|
|
|
/* FIXME: We apparently need to subtract the actual module's
|
|
|
|
* ordinal base. */
|
|
|
|
FIXME("Ordinal imports are not implemented.\n");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
IMAGE_IMPORT_BY_NAME *name;
|
|
|
|
|
|
|
|
if (!(name = ImageRvaToVa(image.FileHeader, image.MappedAddress, thunk->u1.AddressOfData, 0)))
|
|
|
|
{
|
|
|
|
ERR("Failed to get VA for name RVA %#x.\n", thunk->u1.AddressOfData);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cb) cb(BindImportProcedure, module, full_path, 0, (ULONG_PTR)name->Name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
UnMapAndLoad(&image);
|
|
|
|
return TRUE;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
2000-11-25 02:28:09 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CheckSum (internal)
|
|
|
|
*/
|
|
|
|
static WORD CalcCheckSum(
|
|
|
|
DWORD StartValue, LPVOID BaseAddress, DWORD WordCount)
|
|
|
|
{
|
|
|
|
LPWORD Ptr;
|
|
|
|
DWORD Sum;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
Sum = StartValue;
|
|
|
|
Ptr = (LPWORD)BaseAddress;
|
|
|
|
for (i = 0; i < WordCount; i++)
|
|
|
|
{
|
|
|
|
Sum += *Ptr;
|
|
|
|
if (HIWORD(Sum) != 0)
|
|
|
|
{
|
|
|
|
Sum = LOWORD(Sum) + HIWORD(Sum);
|
|
|
|
}
|
|
|
|
Ptr++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (WORD)(LOWORD(Sum) + HIWORD(Sum));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-10-11 19:04:17 +02:00
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* CheckSumMappedFile (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
PIMAGE_NT_HEADERS WINAPI CheckSumMappedFile(
|
2002-06-01 01:06:46 +02:00
|
|
|
LPVOID BaseAddress, DWORD FileLength,
|
1998-10-11 19:04:17 +02:00
|
|
|
LPDWORD HeaderSum, LPDWORD CheckSum)
|
|
|
|
{
|
2019-03-24 12:25:47 +01:00
|
|
|
PIMAGE_NT_HEADERS header;
|
2000-11-25 02:28:09 +01:00
|
|
|
DWORD CalcSum;
|
|
|
|
DWORD HdrSum;
|
|
|
|
|
2019-03-24 12:25:47 +01:00
|
|
|
TRACE("(%p, %d, %p, %p)\n", BaseAddress, FileLength, HeaderSum, CheckSum);
|
2000-11-25 02:28:09 +01:00
|
|
|
|
2019-03-24 12:25:47 +01:00
|
|
|
CalcSum = CalcCheckSum(0, BaseAddress, (FileLength + 1) / sizeof(WORD));
|
|
|
|
header = RtlImageNtHeader(BaseAddress);
|
2009-12-04 17:12:00 +01:00
|
|
|
|
2019-03-24 12:25:47 +01:00
|
|
|
if (!header)
|
2009-12-04 17:12:00 +01:00
|
|
|
return NULL;
|
|
|
|
|
2019-03-24 12:25:47 +01:00
|
|
|
*HeaderSum = HdrSum = header->OptionalHeader.CheckSum;
|
2000-11-25 02:28:09 +01:00
|
|
|
|
|
|
|
/* Subtract image checksum from calculated checksum. */
|
|
|
|
/* fix low word of checksum */
|
|
|
|
if (LOWORD(CalcSum) >= LOWORD(HdrSum))
|
|
|
|
{
|
|
|
|
CalcSum -= LOWORD(HdrSum);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CalcSum = ((LOWORD(CalcSum) - LOWORD(HdrSum)) & 0xFFFF) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* fix high word of checksum */
|
|
|
|
if (LOWORD(CalcSum) >= HIWORD(HdrSum))
|
|
|
|
{
|
|
|
|
CalcSum -= HIWORD(HdrSum);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CalcSum = ((LOWORD(CalcSum) - HIWORD(HdrSum)) & 0xFFFF) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add file length */
|
|
|
|
CalcSum += FileLength;
|
|
|
|
|
|
|
|
*CheckSum = CalcSum;
|
|
|
|
|
2019-03-24 12:25:47 +01:00
|
|
|
return header;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* MapFileAndCheckSumA (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI MapFileAndCheckSumA(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCSTR Filename, PDWORD HeaderSum, PDWORD CheckSum)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
2000-11-25 02:28:09 +01:00
|
|
|
HANDLE hFile;
|
|
|
|
HANDLE hMapping;
|
|
|
|
LPVOID BaseAddress;
|
|
|
|
DWORD FileLength;
|
|
|
|
|
|
|
|
TRACE("(%s, %p, %p): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(Filename), HeaderSum, CheckSum
|
|
|
|
);
|
2000-11-25 02:28:09 +01:00
|
|
|
|
|
|
|
hFile = CreateFileA(Filename,
|
|
|
|
GENERIC_READ,
|
|
|
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
|
|
|
NULL,
|
|
|
|
OPEN_EXISTING,
|
|
|
|
FILE_ATTRIBUTE_NORMAL,
|
|
|
|
0);
|
|
|
|
if (hFile == INVALID_HANDLE_VALUE)
|
|
|
|
{
|
2001-09-11 02:32:32 +02:00
|
|
|
return CHECKSUM_OPEN_FAILURE;
|
|
|
|
}
|
1998-10-11 19:04:17 +02:00
|
|
|
|
2000-11-25 02:28:09 +01:00
|
|
|
hMapping = CreateFileMappingW(hFile,
|
|
|
|
NULL,
|
|
|
|
PAGE_READONLY,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
NULL);
|
|
|
|
if (hMapping == 0)
|
|
|
|
{
|
|
|
|
CloseHandle(hFile);
|
|
|
|
return CHECKSUM_MAP_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BaseAddress = MapViewOfFile(hMapping,
|
|
|
|
FILE_MAP_READ,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0);
|
2006-06-23 13:02:56 +02:00
|
|
|
if (BaseAddress == 0)
|
2000-11-25 02:28:09 +01:00
|
|
|
{
|
|
|
|
CloseHandle(hMapping);
|
|
|
|
CloseHandle(hFile);
|
|
|
|
return CHECKSUM_MAPVIEW_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FileLength = GetFileSize(hFile,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
CheckSumMappedFile(BaseAddress,
|
|
|
|
FileLength,
|
|
|
|
HeaderSum,
|
|
|
|
CheckSum);
|
|
|
|
|
|
|
|
UnmapViewOfFile(BaseAddress);
|
|
|
|
CloseHandle(hMapping);
|
|
|
|
CloseHandle(hFile);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1998-10-11 19:04:17 +02:00
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* MapFileAndCheckSumW (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI MapFileAndCheckSumW(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCWSTR Filename, PDWORD HeaderSum, PDWORD CheckSum)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
2000-11-25 02:28:09 +01:00
|
|
|
HANDLE hFile;
|
|
|
|
HANDLE hMapping;
|
|
|
|
LPVOID BaseAddress;
|
|
|
|
DWORD FileLength;
|
|
|
|
|
|
|
|
TRACE("(%s, %p, %p): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_w(Filename), HeaderSum, CheckSum
|
|
|
|
);
|
2000-11-25 02:28:09 +01:00
|
|
|
|
|
|
|
hFile = CreateFileW(Filename,
|
|
|
|
GENERIC_READ,
|
|
|
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
|
|
|
NULL,
|
|
|
|
OPEN_EXISTING,
|
|
|
|
FILE_ATTRIBUTE_NORMAL,
|
|
|
|
0);
|
|
|
|
if (hFile == INVALID_HANDLE_VALUE)
|
|
|
|
{
|
1998-10-11 19:04:17 +02:00
|
|
|
return CHECKSUM_OPEN_FAILURE;
|
2000-11-25 02:28:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
hMapping = CreateFileMappingW(hFile,
|
|
|
|
NULL,
|
|
|
|
PAGE_READONLY,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
NULL);
|
|
|
|
if (hMapping == 0)
|
|
|
|
{
|
|
|
|
CloseHandle(hFile);
|
|
|
|
return CHECKSUM_MAP_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BaseAddress = MapViewOfFile(hMapping,
|
|
|
|
FILE_MAP_READ,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0);
|
2006-06-26 15:30:06 +02:00
|
|
|
if (BaseAddress == 0)
|
2000-11-25 02:28:09 +01:00
|
|
|
{
|
|
|
|
CloseHandle(hMapping);
|
|
|
|
CloseHandle(hFile);
|
|
|
|
return CHECKSUM_MAPVIEW_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FileLength = GetFileSize(hFile,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
CheckSumMappedFile(BaseAddress,
|
|
|
|
FileLength,
|
|
|
|
HeaderSum,
|
|
|
|
CheckSum);
|
|
|
|
|
|
|
|
UnmapViewOfFile(BaseAddress);
|
|
|
|
CloseHandle(hMapping);
|
|
|
|
CloseHandle(hFile);
|
|
|
|
|
|
|
|
return 0;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* ReBaseImage (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI ReBaseImage(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCSTR CurrentImageName, PCSTR SymbolPath, BOOL fReBase,
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL fRebaseSysfileOk, BOOL fGoingDown, ULONG CheckImageSize,
|
2007-08-04 03:15:44 +02:00
|
|
|
ULONG *OldImageSize, ULONG_PTR *OldImageBase, ULONG *NewImageSize,
|
|
|
|
ULONG_PTR *NewImageBase, ULONG TimeStamp)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME(
|
2006-10-08 18:58:00 +02:00
|
|
|
"(%s, %s, %d, %d, %d, %d, %p, %p, %p, %p, %d): stub\n",
|
2002-06-01 01:06:46 +02:00
|
|
|
debugstr_a(CurrentImageName),debugstr_a(SymbolPath), fReBase,
|
|
|
|
fRebaseSysfileOk, fGoingDown, CheckImageSize, OldImageSize,
|
1998-10-11 19:04:17 +02:00
|
|
|
OldImageBase, NewImageSize, NewImageBase, TimeStamp
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* RemovePrivateCvSymbolic (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI RemovePrivateCvSymbolic(
|
1998-10-11 19:04:17 +02:00
|
|
|
PCHAR DebugData, PCHAR *NewDebugData, ULONG *NewDebugSize)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p, %p, %p): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
DebugData, NewDebugData, NewDebugSize
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* RemoveRelocations (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
VOID WINAPI RemoveRelocations(PCHAR ImageName)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p): stub\n", ImageName);
|
1998-10-11 19:04:17 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* SplitSymbols (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI SplitSymbols(
|
2007-08-04 03:15:44 +02:00
|
|
|
PSTR ImageName, PCSTR SymbolsPath,
|
|
|
|
PSTR SymbolFilePath, ULONG Flags)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
2006-10-08 18:58:00 +02:00
|
|
|
FIXME("(%s, %s, %s, %d): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(ImageName), debugstr_a(SymbolsPath),
|
|
|
|
debugstr_a(SymbolFilePath), Flags
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* UpdateDebugInfoFile (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI UpdateDebugInfoFile(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCSTR ImageFileName, PCSTR SymbolPath,
|
2007-10-02 14:58:10 +02:00
|
|
|
PSTR DebugFilePath, PIMAGE_NT_HEADERS32 NtHeaders)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%s, %s, %s, %p): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(ImageFileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(DebugFilePath), NtHeaders
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* UpdateDebugInfoFileEx (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI UpdateDebugInfoFileEx(
|
2007-08-04 03:15:44 +02:00
|
|
|
PCSTR ImageFileName, PCSTR SymbolPath, PSTR DebugFilePath,
|
|
|
|
PIMAGE_NT_HEADERS32 NtHeaders, DWORD OldChecksum)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
2006-10-08 18:58:00 +02:00
|
|
|
FIXME("(%s, %s, %s, %p, %d): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(ImageFileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(DebugFilePath), NtHeaders, OldChecksum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|