IDiaAddressMap::get_relativeVirtualAddressEnabled

Indicates whether the calculation and use of relative virtual addresses (RVA) is enabled.

Syntax

HRESULT get_relativeVirtualAddressEnabled ( 
   BOOL* pRetVal
);

Parameters

pRetVal

[out] Returns TRUE if the calculation of RVAs is enabled.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

RVAs are enabled if the segments have been initially loaded from a PDB file. The use of RVAs can be temporarily disabled by calling the IDiaAddressMap::put_relativeVirtualAddressEnabled method.

Also, new image headers can be established by calling the IDiaAddressMap::set_imageHeaders method followed by a call to the put_relativeVirtualAddressEnabled method to enable use of the RVAs using the new image headers.

See also