RtlLookupFunctionEntry function

Searches the active function tables for an entry that corresponds to the specified PC value.

Syntax

NTSYSAPI PRUNTIME_FUNCTION RtlLookupFunctionEntry(
  DWORD64               ControlPc,
  PDWORD64              ImageBase,
  PUNWIND_HISTORY_TABLE HistoryTable
);

Parameters

ControlPc

The virtual address of an instruction bundle within the function.

ImageBase

The base address of module to which the function belongs.

HistoryTable

The global pointer value of the module.

This parameter has a different declaration on x64 and ARM systems. For more information, see x64 Definition and ARM Definition.

Return Value

If there is no entry in the function table for the specified PC, the function returns NULL. Otherwise, the function returns the address of the function table entry that corresponds to the specified PC.

Requirements

   
Target Platform Windows
Header winnt.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

RtlUnwindEx

RtlVirtualUnwind