DiaAddressMapEntry
Describes an entry in an address map.
Syntax
struct DiaAddressMapEntry {
DWORD rva,
DWORD rvaTo
};
Elements
Element | Description |
---|---|
rva |
A relative virtual address (RVA) in image A. |
rvaTo |
The relative virtual address 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 DiaAddressMapEntry
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:
Search the map for the entry,
e
, with the largestrva
less than or equal toaddrA
.Set
delta = addrA - e.rva
.Set
addrB = e.rvaTo + delta
.An array of
DiaAddressMapEntry
structures is passed to the IDiaAddressMap::set_addressMap method.
Requirements
Header: dia2.h