IDiaAddressMap::put_relativeVirtualAddressEnabled
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.