Debugging Tools for Windows

GetSymbolOffset

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.

HRESULT
  IDebugSymbolGroup2::GetSymbolOffset(
    IN ULONG  Index,
    OUT PULONG64  Offset
    );

Parameters

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.
Offset
The location in the process's virtual address space of the symbol.

Return Value

GetSymbolOffset might return one of the following values:

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

This method might also return error values. For more information about possible return values, see Return Values.

Comments

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

Requirements

Versions: Available in IDebugSymbolGroup2 and later versions.

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

GetNumberSymbols
Build machine: CAPEBUILD