IDebugHostType2::GetSize 方法 (dbgmodel.h)
GetSize 方法會傳回類型的大小(就像在 C++ 中已完成 sizeof(type) 一樣)。
語法
HRESULT GetSize(
ULONG64 *size
);
參數
size
此類型的大小將會在這裡傳回。
傳回值
此方法會傳回表示成功或失敗的 HRESULT。
言論
範例程式代碼
ComPtr<IDebugHostType2> spType; /* get a type (see FindTypeByName) */
ULONG64 size;
if (SUCCEEDED(spType->GetSize(&size)))
{
// size is equivalent to sizeof( <type> )
}
要求
要求 | 價值 |
---|---|
標頭 | dbgmodel.h |