The GetParent method of the IRemoteThreadGroupEx interface returns the parent thread group of this thread group.
HRESULT GetParent(IRemoteThreadGroupEx **ppParentGroup)
[out] **ppParentGroup | Returns the parent thread group of this thread group. |
S_OK Success.
E_NOLONGERVALID The underlying object is no longer valid.
If this thread group has no parent thread group, S_OK will be returned and ppParentGroup will be NULL.
The GetParent method returns S_OK and NULL for the system thread group to indicate that this thread group does not have a parent thread group. The system thread group is the only thread group without a parent.