PGET_MODULE_BASE_ROUTINE callback function

An application-defined callback function used with the StackWalk64 function. It is called when StackWalk64 needs a module base address for a given virtual address.

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

Syntax

PGET_MODULE_BASE_ROUTINE PgetModuleBaseRoutine;

DWORD PgetModuleBaseRoutine(
  HANDLE hProcess,
  DWORD Address
)
{...}

Parameters

hProcess

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

Address

An address within the module image to be located.

Return Value

The function returns the base address of the module.

Remarks

This callback function supersedes the PGET_MODULE_BASE_ROUTINE callback function. PGET_MODULE_BASE_ROUTINE is defined as follows in DbgHelp.h.

#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define PGET_MODULE_BASE_ROUTINE PGET_MODULE_BASE_ROUTINE64
#else
typedef
DWORD
(__stdcall *PGET_MODULE_BASE_ROUTINE)(
    __in HANDLE hProcess,
    __in DWORD Address
    );
#endif

Requirements

   
Target Platform Windows
Header dbghelp.h
Redistributable DbgHelp.dll 5.1 or later

See Also

DbgHelp Functions

StackWalk64