IDebugHostData::GetValue method (dbgmodel.h)

Returns the value of the constant in a VARIANT data structure.

Syntax

HRESULT GetValue(
  VARIANT *value
);

Parameters

value

The value of the data packed into a VARIANT will be returned here.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Sample Code

ComPtr<IDebugHostData> spData; /* get a data symbol */

VARIANT vtValue;
if (SUCCEEDED(spData->GetValue(&vtValue)))
{
    // For data which has a constant value as determined by GetLocationKind, 
    // vtValue contains the value of the data
    VariantClear(&vtValue);
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IDebugHostData interface