IWiaDrvItem::GetParentItem method (wiamindr_lh.h)

The IWiaDrvItem::GetParentItem gets the parent item of the current item.

Syntax

HRESULT GetParentItem(
  IWiaDrvItem **__MIDL__IWiaDrvItem0012
);

Parameters

__MIDL__IWiaDrvItem0012

ppIParentItem [out, optional]

Returns a pointer to the parent item of the current item.

Return value

If the method succeeds, it stores a pointer to the parent item in pplParentItem and returns S_OK. If the parent item is the root item, the method returns S_FALSE. If the method fails, it returns a standard COM error code.

Remarks

Minidrivers typically use this method to obtain a pointer to the nonroot parent item of the current item.

Requirements

Requirement Value
Target Platform Desktop
Header wiamindr_lh.h (include Wiamindr.h)

See also

IWiaDrvItem

IWiaDrvItem::GetFirstChildItem

IWiaDrvItem::GetNextSiblingItem