IDebugSymbolGroup2::GetSymbolSize method

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

Syntax

HRESULT GetSymbolSize(
  ULONG  Index,
  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

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

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

Remarks

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

Requirements

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

See Also

GetNumberSymbols

IDebugSymbolGroup2

IDebugSymbols::GetTypeSize