Platform SDK: Debugging and Error Handling

FunctionTableAccessProc

The FunctionTableAccessProc function is an application-defined callback function used with the StackWalk function. It provides access to the run-time function table for the process.

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

PVOID FunctionTableAccessProc(
  HANDLE hProcess,
  DWORD AddrBase
);

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

PVOID FunctionTableAccessProc64(
  HANDLE hProcess,
  DWORD64 AddrBase
);

Parameters

hProcess
[in] Handle to the process for which the stack trace is generated.
AddrBase
[in] Address of the instruction for which you are searching.

Return Value

The function returns a pointer to the run-time function table. On an x86 computer, this is a pointer to an FPO_DATA structure. On an Alpha computer, this is a pointer to an IMAGE_FUNCTION_ENTRY structure.

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, FPO_DATA, IMAGE_FUNCTION_ENTRY, StackWalk