Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |