Compartilhar via


IDiaSymbol::get_addressSection

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 section part of an address location. Use when the LocationType Enumeration is set to LocIsStatic.

Syntax

HRESULT get_addressSection (   
   DWORD* pRetVal  
);  

Parameters

pRetVal
[out] Returns the section part of an address location.

Return Value

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

Note

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

Remarks

For static members located in an external DLL, the section returned by this method may be 0 as this method relies on obtaining the virtual address of the member. Virtual addresses are valid only if the IDiaSession::put_loadAddress method in the IDiaSession interface has been called with a nonzero parameter specifying the load address of the DLL.

To get the offset part of an address, call the IDiaSymbol::get_addressOffset method.

Requirements

Requirement Description
Header: dia2.h
Version: DIA SDK v7.0

See Also

IDiaSymbol
LocationType Enumeration