RtlGetCallersAddress - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

// rev
NTSYSAPI
VOID
NTAPI
RtlGetCallersAddress( // Use the intrinsic _ReturnAddress instead.
    _Out_ PVOID *CallersAddress,
    _Out_ PVOID *CallersCaller
    );

#endif

View code on GitHub

Routine RtlGetCallersAddress is useful in program debugging or exceptions control. It returns address of calling instruction.

CallersAddress

Returns address in body of function that call RtlGetCallersAddress.

CallersCaller

Returns address in function's calling function that call RtlGetCallersAddress body.

Documented by

See also