The ImageRvaToVa function locates a relative virtual address (RVA) within the image header of a file that is mapped as a file and returns the virtual address of the corresponding byte in the file.
LPVOID ImageRvaToVa(
IN PIMAGE_NT_HEADERS NtHeaders,
IN LPVOID Base,
IN DWORD Rva,
IN OUT PIMAGE_SECTION_HEADER *LastRvaSection
);
If the function succeeds, the return value is the virtual address in the mapped file.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
The ImageRvaToVa function locates an RVA within the image header of a file that is mapped as a file and returns the virtual address of the corresponding byte in the file.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in imagehlp.h.
Import Library: Use imagehlp.lib.
PE Image Helper (ImageHlp) Overview, Image Access, ImageNtHeader, MapViewOfFile