Skip to content

Latest commit

 

History

History
96 lines (69 loc) · 2.76 KB

nf-dbgmodel-imodelobject-getrawvalue.md

File metadata and controls

96 lines (69 loc) · 2.76 KB
UID title description ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos tech.root ms.custom f1_keywords topic_type api_type api_location api_name
NF:dbgmodel.IModelObject.GetRawValue
IModelObject::GetRawValue (dbgmodel.h)
The GetRawValue method finds a native construct within the given object. Such a construct may be a field, a base class, a field in a base class, a member function, etc.
08/09/2018
IModelObject::GetRawValue
IModelObject::GetRawValue, GetRawValue, IModelObject.GetRawValue, IModelObject::GetRawValue, IModelObject.GetRawValue
dbgmodel.h
Windows
debugger
RS5
IModelObject::GetRawValue
dbgmodel/IModelObject::GetRawValue
apiref
COM
dbgmodel.h
IModelObject::GetRawValue

IModelObject::GetRawValue

-description

The GetRawValue method finds a native construct within the given object. Such a construct may be a field, a base class, a field in a base class, a member function, etc.

-parameters

-param kind

Indicates the kind of native symbol to fetch (e.g.: a base class or a data member)

-param name

The name of the native construct to fetch.

-param searchFlags

An optional set of flags specifying the behavior of the search for the native construct.

-param object

An IModelObject representing the fetched native construct will be returned here. Note that in some circumstances, extended error information may be returned in this argument even if the HRESULT indicates failure.

-returns

This method returns HRESULT that indicates success or failure.

-remarks

The searchFlags argument is a set of bit flags specified by the RawSearchFlags enumeration. This enumeration presently defines the following values:

RawSearchNone - No special semantics to the search. Do the default search action for the target language being debugged.

RawSearchNoBases - Indicates that the search should not recurse to base children (e.g.: base classes). Only names/types which are in the object itself should be returned.

Code Sample

ComPtr<IModelObject> spMessage; /* get a tagMSG */

// Get the 'message' field of the tagMSG structure:
ComPtr<IModelObject> spMsgId;
if (SUCCEEDED(spMessage->GetRawValue(SymbolField, L"message", RawSearchNone, &spMsgId)))
{
    // spMsgId contains the boxed form of the 'message' field of the tagMSG object.
}

-see-also

IModelObject interface