wiasCreateChildAppItem function (wiamdef.h)

The wiasCreateChildAppItem function creates a new application item and inserts it as a child of the specified parent item. Note that this item will not have any properties in its property sets until the driver or application actually fills them in.

Syntax

HRESULT wiasCreateChildAppItem(
  [in]  BYTE *pParentWiasContext,
        LONG lFlags,
  [in]  BSTR bstrItemName,
  [in]  BSTR bstrFullItemName,
  [out] BYTE **ppWiasChildContext
);

Parameters

[in] pParentWiasContext

Pointer to the item context to which the child will be added.

lFlags

Is reserved for system use.

[in] bstrItemName

Specifies a string that contains the item name without path information.

[in] bstrFullItemName

Specifies a string that contains the item name including path information.

[out] ppWiasChildContext

Pointer to a memory location that receives the address of the newly created child item's context.

Return value

On success, the function returns S_OK.

If the function fails, it returns a standard COM error or one of the WIA error codes.

Requirements

Requirement Value
Target Platform Desktop
Header wiamdef.h (include Wiamdef.h)
Library Wiaservc.lib
DLL Wiaservc.dll

See also

wiasCreateDrvItem