IDebugHostType2::GetSize method (dbgmodel.h)

The GetSize method returns the size of the type (as if one had done sizeof(type) in C++).

Syntax

HRESULT GetSize(
  ULONG64 *size
);

Parameters

size

The size of the type will be returned here.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Sample Code

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

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

Requirements

Requirement Value
Header dbgmodel.h

See also

IDebugHostType2 interface