Debugging Tools for Windows

GetSymbolSize

The GetSymbolSize method returns the size of a symbol's value.

HRESULT
  IDebugSymbolGroup2::GetSymbolSize(
    IN ULONG  Index,
    OUT PULONG  Size
    );

Parameters

Index
The index of the symbol to remove. 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.
Size
The size, in bytes, of the symbol's value. This information might not be available. If this information is not available, Size is set to zero. For some symbols (for example, a function's code), the data might be split over multiple regions. In this situation, Size is not meaningful.

Return Value

GetSymbolSize might return one of the following values:

S_OK
The method was successful.
E_NOINTERFACE
The symbol does not have type data associated with it.

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, IDebugSymbols::GetTypeSize

Build machine: CAPEBUILD