IDebugHostType2::GetTypeKind 方法 (dbgmodel.h)
GetTypeKind 方法返回符号引用的类型(指针、数组、内部函数等...)。
语法
HRESULT GetTypeKind(
TypeKind *kind
);
参数
kind
符号引用的类型将在此处返回(作为 TypeKind 枚举的成员)。
返回值
此方法返回指示成功或失败的 HRESULT。
言论
示例代码
ComPtr<IDebugHostType2> 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 |