次の方法で共有


DiaAddressMapEntry

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]

Describes an entry in an address map.

struct DiaAddressMapEntry { 
   DWORD rva,
   DWORD rvaTo
};

Elements

  • 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:

  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.

An array of DiaAddressMapEntry structures is passed to the IDiaAddressMap::set_addressMap method.

Requirements

Header: dia2.h

See Also

Enumerations and Structures
IDiaAddressMap::set_addressMap
Glossary of DIA SDK Terms