Export (0) Print
Expand All

IDiaSession::findLinesByRVA Method

Retrieves the lines in a specified compiland that contain a specified relative virtual address (RVA).

HRESULT findLinesByRVA (
   DWORD rva,
   DWORD length,
   IDiaEnumLineNumbers** ppResult
);

Parameters

rva
[in] Specifies the address as an RVA.
length
[in] Specifies the number of bytes of address range to cover with this query.
ppResult
[out] Returns the IDiaEnumLineNumbers interface, which represents all the line numbers that cover the specified address range.

Example

DWORD rva;
ULONGLONG length;
pFunc->get_relativeVirtualAddress ( &rva );
pFunc->get_length ( &length );
IDiaEnumLineNumbers* pEnum;
pSession->findLinesByRVA( rva, static_cast<DWORD>( length ), &pEnum );

See Also

IDiaEnumLineNumbers | IDiaSession | Glossary

Show:
© 2014 Microsoft