Expand Minimize
This topic has not yet been rated - Rate this topic

OMAP structure

Describes an entry in an address map.

Syntax


typedef struct _OMAP {
  ULONG rva;
  ULONG rvaTo;
} OMAP, *POMAP;

Members

rva

A relative virtual address (RVA) in image A.

rvaTo

The relative virtual address that rva is mapped to in image B.

Remarks

An address map provides a translation from one image layout (A) to another (B). An array of OMAP structures, sorted by rva, defines an address map.

To translate an address, addrA, in image A to an address, addrB, in image B, perform the following steps:

  1. Search the map for the entry, e, with the largest rva less than or equal to addrA.
  2. Set delta = addrA – e.rva.
  3. Set addrB = e.rvaTo + delta.

Requirements

Redistributable

DbgHelp.dll 6.8 or later

Header

Dbghelp.h

See also

SymGetOmaps

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.