次の方法で共有


IDiaSymbol::get_addressOffset

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]

Retrieves the offset part of an address ___location. Use when the LocationType is set to LocIsStatic.

HRESULT get_addressOffset ( 
   DWORD* pRetVal
);

Parameters

  • pRetVal
    [out] Returns the offset part of an address ___location.

Return Value

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

注意

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 offset 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 section part of an address, call the IDiaSymbol::get_addressSection method.

Requirements

Requirement

Description

Header:

dia2.h

Version:

DIA SDK v7.0

See Also

IDiaSymbol
LocationType
IDiaSymbol::get_addressSection
IDiaSession::put_loadAddress
IDiaSession