IDiaSession::addressForVA

Returns the equivalent address for the specified virtual address (VA).

Syntax

HRESULT addressForVA(
    ULONGLONG va,
    DWORD* pISect,
    DWORD* pOffset);

Parameters

va

[in] The virtual address to translate.

pISect

[out] Returns the equivalent section for the specified address.

pOffset

[out] Returns the equivalent offset within the section for the specified address.

Return Value

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

Example

DWORD sect = 0, offset = 0;
pSession->addressForVA( va, &sect, &offset );

See also