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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for