// wiamdef.h
HRESULT wiasCreateDrvItem(
LONG lObjectFlags,
BSTR bstrItemName,
BSTR bstrFullItemName,
[in, out] IWiaMiniDrv *pIMiniDrv,
LONG cbDevSpecContext,
[out] BYTE **ppDevSpecContext,
[out] IWiaDrvItem **ppIWiaDrvItem
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasCreateDrvItem function creates an IWiaDrvItem Interface object.
lObjectFlagsSpecifies the object item type, which must be WiaItemTypeFolder or WiaItemTypeFile (possibly the bitwise OR of these). These flags are described in WIA Item Type Flags.
bstrItemNameSpecifies a string that contains the item name without path information.
bstrFullItemNameSpecifies a string that contains the item name with path information.
pIMiniDrv [in, out]Pointer to the IWiaMiniDrv Interface of the current minidriver.
cbDevSpecContextSpecifies the size in bytes of the device specific context.
ppDevSpecContext [out]Pointer to a memory location that receives the address of the device specific context. Set this to NULL if the information is not needed.
ppIWiaDrvItem [out]Pointer to a memory location that receives the address of an IWiaDrvItem Interface for the newly created IWiaDrvItem object.
On success, the function returns S_OK.
If the function fails, it returns a standard COM error or one of the WIA error codes.
This function creates and initializes an IWiaDrvItem COM Interface object with the specified name and attributes. It also creates a context for the IWiaDrvItem object. Minidrivers typically use this function to build a tree of device items.