wiasGetChildrenContexts 函数 (wiamdef.h)

wiasGetChildrenContexts 函数检索属于当前项的子项的项上下文数组。

语法

HRESULT wiasGetChildrenContexts(
  [in]  BYTE  *pParentContext,
  [out] ULONG *pulNumChildren,
  [out] BYTE  ***pppChildren
);

参数

[in] pParentContext

指向父项的指针。

[out] pulNumChildren

指向接收子上下文数的内存位置的指针。

[out] pppChildren

指向内存位置的指针,该位置指向其元素是 IWiaItem 对象的地址的数组。 每个 IWiaItem 对象表示一个子上下文。

返回值

成功后,函数返回S_OK。

如果函数失败,它将返回标准 COM 错误或 WIA 错误代码之一。

要求

要求
目标平台 桌面
标头 wiamdef.h (包括 Wiamdef.h)
Library Wiaservc.lib
DLL Wiaservc.dll