IDebugHostPublic::GetLocationKind 方法 (dbgmodel.h)
GetLocationKind 方法會根據LocationKind列舉傳回符號所在的位置類型。 如需此列舉的描述,請參閱 IDebugHostField檔。
語法
HRESULT GetLocationKind(
LocationKind *locationKind
);
參數
locationKind
此欄位的位置類型將會在此傳回為 LocationKind 列舉的值。
傳回值
此方法會傳回 HRESULT,指出成功或失敗。
言論
範例程式代碼
ComPtr<IDebugHostPublic> spPublic; /* get a public symbol (see EnumerateChildren) */
LocationKind kind;
if (SUCCEEDED(spPublic->GetLocationKind(&kind)))
{
// kind indicates the kind of location (static, none).
}
要求
要求 | 價值 |
---|---|
標頭 | dbgmodel.h |