IDebugHostData::GetLocationKind 方法 (dbgmodel.h)
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 |