IDebugHostType::GetTypeKind 方法 (dbgmodel.h)
GetTypeKind 方法會傳回符號所參考的類型類型(指標、陣列、內建等...)。 如需詳細資訊,請參閱 TypeKind 列舉。
語法
HRESULT GetTypeKind(
TypeKind *kind
);
參數
kind
符號所參考的類型將在這裡傳回(作為 TypeKind 列舉的成員)。
傳回值
此方法會傳回表示成功或失敗的 HRESULT。
言論
範例程式代碼
ComPtr<IDebugHostType> spType; /* get a type (see FindTypeByName) */
TypeKind tk;
if (SUCCEEDED(spType->GetTypeKind(&tk)))
{
// tk is the kind of type
// TypePointer: it's a pointer
// TypeArray: it's an array
// etc...
}
要求
要求 | 價值 |
---|---|
標頭 | dbgmodel.h |