IDebugHostData::GetLocation method (dbgmodel.h)
For data which has an address, the GetLocation method will return the abstract location (address) of the field. If the given data does not have a static location, the GetLocation method will fail.
Syntax
HRESULT GetLocation(
Location *location
);
Parameters
location
The abstract location (e.g.: address) of the data 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 */
Location dataLocation;
if (SUCCEEDED(spData->GetLocation(&dataLocation)))
{
// For data which has a static location as determined by
// GetLocationKind, dataLocation contains the location of the data
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |