GetLocationKind 方法根据 LocationKind 枚举返回符号所在的位置类型。 可以在 IDebugHostField文档中找到此枚举的说明。
语法
HRESULT GetLocationKind(
LocationKind *locationKind
);
参数
locationKind
此字段的位置类型将作为 LocationKind 枚举的值返回在此处。
返回值
此方法返回指示成功或失败的 HRESULT。
言论
示例代码
ComPtr<IDebugHostData> spData; /* get a data symbol */
LocationKind kind;
if (SUCCEEDED(spData->GetLocationKind(&kind)))
{
// kind indicates the kind of ___location (e.g.: static, constant, member, etc...)
}
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |