1998-10-11 19:04:17 +02:00
|
|
|
/*
|
|
|
|
* IMAGEHLP library
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "winbase.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "winerror.h"
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "debug.h"
|
|
|
|
#include "imagehlp.h"
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* BindImage32 (IMAGEHLP.1)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI BindImage(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR ImageName, LPSTR DllPath, LPSTR SymbolPath)
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
return BindImageEx(0, ImageName, DllPath, SymbolPath, NULL);
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* BindImageEx32 (IMAGEHLP.2)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI BindImageEx(
|
1998-10-11 19:04:17 +02:00
|
|
|
DWORD Flags, LPSTR ImageName, LPSTR DllPath, LPSTR SymbolPath,
|
1999-02-26 12:11:13 +01:00
|
|
|
PIMAGEHLP_STATUS_ROUTINE StatusRoutine)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%ld, %s, %s, %s, %p): stub\n",
|
|
|
|
Flags, debugstr_a(ImageName), debugstr_a(DllPath),
|
|
|
|
debugstr_a(SymbolPath), StatusRoutine
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CheckSumMappedFile32 (IMAGEHLP.3)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
PIMAGE_NT_HEADERS WINAPI CheckSumMappedFile(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPVOID BaseAddress, DWORD FileLength,
|
|
|
|
LPDWORD HeaderSum, LPDWORD CheckSum)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%p, %ld, %p, %p): stub\n",
|
|
|
|
BaseAddress, FileLength, HeaderSum, CheckSum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MapFileAndCheckSum32A (IMAGEHLP.27)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI MapFileAndCheckSumA(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR Filename, LPDWORD HeaderSum, LPDWORD CheckSum)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%s, %p, %p): stub\n",
|
|
|
|
debugstr_a(Filename), HeaderSum, CheckSum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return CHECKSUM_OPEN_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MapFileAndCheckSum32W (IMAGEHLP.28)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI MapFileAndCheckSumW(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPWSTR Filename, LPDWORD HeaderSum, LPDWORD CheckSum)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%s, %p, %p): stub\n",
|
|
|
|
debugstr_w(Filename), HeaderSum, CheckSum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return CHECKSUM_OPEN_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* ReBaseImage32 (IMAGEHLP.30)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI ReBaseImage(
|
|
|
|
LPSTR CurrentImageName, LPSTR SymbolPath, BOOL fReBase,
|
|
|
|
BOOL fRebaseSysfileOk, BOOL fGoingDown, ULONG CheckImageSize,
|
1998-10-11 19:04:17 +02:00
|
|
|
ULONG *OldImageSize, ULONG *OldImageBase, ULONG *NewImageSize,
|
|
|
|
ULONG *NewImageBase, ULONG TimeStamp)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp,
|
|
|
|
"(%s, %s, %d, %d, %d, %ld, %p, %p, %p, %p, %ld): stub\n",
|
|
|
|
debugstr_a(CurrentImageName),debugstr_a(SymbolPath), fReBase,
|
|
|
|
fRebaseSysfileOk, fGoingDown, CheckImageSize, OldImageSize,
|
|
|
|
OldImageBase, NewImageSize, NewImageBase, TimeStamp
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* RemovePrivateCvSymbolic32 (IMAGEHLP.31)
|
|
|
|
*/
|
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)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%p, %p, %p): stub\n",
|
|
|
|
DebugData, NewDebugData, NewDebugSize
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* RemoveRelocations32 (IMAGEHLP.32)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
VOID WINAPI RemoveRelocations(PCHAR ImageName)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%p): stub\n", ImageName);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SplitSymbols32 (IMAGEHLP.35)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI SplitSymbols(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR ImageName, LPSTR SymbolsPath,
|
|
|
|
LPSTR SymbolFilePath, DWORD Flags)
|
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%s, %s, %s, %ld): stub\n",
|
|
|
|
debugstr_a(ImageName), debugstr_a(SymbolsPath),
|
|
|
|
debugstr_a(SymbolFilePath), Flags
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* UpdateDebugInfoFile32 (IMAGEHLP.60)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI UpdateDebugInfoFile(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR ImageFileName, LPSTR SymbolPath,
|
1999-02-26 12:11:13 +01:00
|
|
|
LPSTR DebugFilePath, PIMAGE_NT_HEADERS NtHeaders)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%s, %s, %s, %p): stub\n",
|
|
|
|
debugstr_a(ImageFileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(DebugFilePath), NtHeaders
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* UpdateDebugInfoFileEx32 (IMAGEHLP.?)
|
|
|
|
* FIXME
|
|
|
|
* Function has no ordinal.
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI UpdateDebugInfoFileEx(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR ImageFileName, LPSTR SymbolPath, LPSTR DebugFilePath,
|
1999-02-26 12:11:13 +01:00
|
|
|
PIMAGE_NT_HEADERS NtHeaders, DWORD OldChecksum)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
|
|
|
FIXME(imagehlp, "(%s, %s, %s, %p, %ld): stub\n",
|
|
|
|
debugstr_a(ImageFileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(DebugFilePath), NtHeaders, OldChecksum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|