IDebugSymbolGroup2::GetSymbolOffset method (dbgeng.h)

The GetSymbolOffset method retrieves the location in the process's virtual address space of a symbol in a symbol group, if the symbol has an absolute address.

Syntax

HRESULT GetSymbolOffset(
  [in]  ULONG    Index,
  [out] PULONG64 Offset
);

Parameters

[in] Index

The index of the symbol whose address you want. The index of a symbol is an identification number. The index ranges from zero through the number of symbols in the symbol group minus one.

[out] Offset

The location in the process's virtual address space of the symbol.

Return value

Return code Description
S_OK
The method was successful.
E_NOINTERFACE
The symbol does not have an absolute address.
 

This method can also return error values. For more information, see Return Values.

Remarks

For more information about symbol groups, see Scopes and Symbol Groups.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

GetNumberSymbols

IDebugSymbolGroup2