GetSize 方法返回类型的大小(就像在 C++ 中已完成 sizeof(type) 一样)。
语法
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> )
}
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |