IDebugHostType::GetSize 方法 (dbgmodel.h)

GetSize 方法返回类型 (的大小,就像在 C++) 中完成了 (类型) 的大小一样。

语法

HRESULT GetSize(
  ULONG64 *size
);

参数

size

类型的大小将在此处返回。

返回值

此方法返回指示成功或失败的 HRESULT。

注解

示例代码

ComPtr<IDebugHostType> spType; /* get a type (see FindTypeByName) */

ULONG64 size;
if (SUCCEEDED(spType->GetSize(&size)))
{
    // size is equivalent to sizeof( <type> )
}

要求

要求
Header dbgmodel.h

另请参阅

IDebugHostType 接口