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...
}

要求

要求
Header dbgmodel.h

另请参阅

IDebugHostType 接口