IDebugHostBaseClass::GetOffset method (dbgmodel.h)
The GetOffset method returns the offset of the base class from the base address of the derived class. Such offset may be zero or may be a positive unsigned 64-bit value.
Syntax
HRESULT GetOffset(
ULONG64 *offset
);
Parameters
offset
The offset of the base class from the base address of the derived class is returned here.
Return value
This method returns HRESULT that indicates success or failure.
Remarks
Code Sample
ComPtr<IDebugHostBaseClass> spBaseClass; /* get a base class symbol (see
EnumerateChildren) */
ULONG64 offset;
if (SUCCEEDED(spBaseClass->GetOffset(&offset)))
{
// offset indicates the position of the base class relative to the
// start of its parent class.
}
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