Share via


IDiaSymbol::get_targetRelativeVirtualAddress

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

Retrieves the relative virtual address (RVA) of a thunk target.

Syntax

HRESULT get_targetRelativeVirtualAddress (   
   DWORD* pRetVal  
);  

Parameters

pRetVal
[out] Returns the RVA of a thunk target.

Return Value

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

Note

A return value of S_FALSE means the property is not available for the symbol.

Remarks

This property is valid only if the symbol as a SymTagEnum Enumeration value of SymTagThunk.

A "thunk" is a piece of code that converts between a 32-bit memory address space (also known as flat address space) and a 16-bit address space (known as a segmented address space).

See Also

IDiaSymbol
SymTagEnum Enumeration