This topic has not yet been rated - Rate this topic

TranslateAddressProc64 callback function

Applies to: desktop apps only

An application-defined callback function used with the StackWalk64 function. It provides address translation for 16-bit addresses.

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

Syntax

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

Parameters

hProcess [in]

A handle to the process for which the stack trace is generated.

hThread [in]

A handle to the thread for which the stack trace is generated.

lpaddr [in]

An address to be translated.

Return value

The function returns the translated address.

Remarks

This callback function supersedes the PTRANSLATE_ADDRESS_ROUTINE callback function. PTRANSLATE_ADDRESS_ROUTINE is defined as follows in Dbghelp.h.

#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define PTRANSLATE_ADDRESS_ROUTINE PTRANSLATE_ADDRESS_ROUTINE64
#else
typedef
DWORD
(__stdcall *PTRANSLATE_ADDRESS_ROUTINE)(
    __in HANDLE hProcess,
    __in HANDLE hThread,
    __out LPADDRESS lpaddr
    );
#endif

Requirements

Redistributable

DbgHelp.dll 5.1 or later

Header

DbgHelp.h

See also

DbgHelp Functions
StackWalk64

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ