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, GetRawValue, IModelObject.GetRawValue, IModelObject::GetRawValue, IModelObject.GetRawValue |
dbgmodel.h |
Windows |
debugger |
RS5 |
|
|
|
|
|
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.
Indicates the kind of native symbol to fetch (e.g.: a base class or a data member)
The name of the native construct to fetch.
An optional set of flags specifying the behavior of the search for the native construct.
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.
This method returns HRESULT that indicates success or failure.
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.
}