Condividi tramite


IDiaAddressMap::put_relativeVirtualAddressEnabled

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Allows the client to enable or disable the calculation and use of relative virtual addresses (RVA).

Syntax

HRESULT put_relativeVirtualAddressEnabled (   
   BOOL NewVal  
);  

Parameters

NewVal
[in] Set to TRUE to enable, or FALSE to disable.

Return Value

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

Remarks

Addresses for debug objects described by DIA interfaces, and relative to the executable's image base, can be retrieved as relative virtual addresses.

The use of RVAs is enabled when segments are initially loaded from a PDB file. To get the current state of the use of RVAs, call the IDiaAddressMap::get_relativeVirtualAddressEnabled method.

The put_relativeVirtualAddress method must be called to enable RVAs after a successful call to the IDiaAddressMap::set_imageHeaders method has established new image headers.

See Also

IDiaAddressMap
IDiaAddressMap::get_relativeVirtualAddressEnabled
IDiaAddressMap::set_imageHeaders