Platform SDK: Debugging and Error Handling

TranslateAddressProc

The TranslateAddressProc function is an application-defined callback function used with the StackWalk function. It provides address translation for 16-bit addresses.

The PTRANSLATE_ADDRESS_ROUTINE type defines a pointer to this callback function. TranslateAddressProc is a placeholder for the application-defined function name.

DWORD TranslateAddressProc(
  HANDLE hProcess,
  HANDLE hThread,
  LPADDRESS lpaddr
);

The PTRANSLATE_ADDRESS_ROUTINE64 type defines a pointer to this callback function. TranslateAddressProc64 is a placeholder for the application-defined function name.

DWORD64 TranslateAddressProc64(
  HANDLE hProcess,
  HANDLE hThread,
  LPADDRESS64 lpaddr
);

Parameters

hProcess
[in] Handle to the process for which the stack trace is generated.
hThread
[in] Handle to the thread for which the stack trace is generated.
lpaddr
[in] Address to be translated.

Return Value

The function returns the translated address.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Dbghelp.h.

See Also

Debug Help Library Overview, DbgHelp Functions, StackWalk