This topic has not yet been rated - Rate this topic

RtlPcToFileHeader function

Applies to: desktop apps | Metro style apps

Retrieves the base address of the image that contains the specified PC value.

Syntax

PVOID WINAPI RtlPcToFileHeader(
  __in   PVOID PcValue,
  __out  PVOID *BaseOfImage
);

Parameters

PcValue [in]

The PC value. The function searches all modules mapped into the address space of the calling process for a module that contains this value.

BaseOfImage [out]

The base address of the image containing the PC value. This value must be added to any relative addresses in the headers to locate the image.

Return value

If the PC value is found, the function returns the base address of the image that contains the PC value.

If no image contains the PC value, the function returns NULL.

Requirements

Product

Windows XP Professional x64 Edition or 64-bit editions of Windows Server 2003

Header

WinNT.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

RtlLookupFunctionEntry

 

 

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
rtlpc
PVOID WINAPI RtlPcToFileHeader(
  __in   PVOID PcValue,
  __out  PVOID *BaseOfImage
);