// wiamdef.h
HRESULT wiasGetItemType(
[in] BYTE *pWiasContext,
LONG *plType
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasGetItemType function indicates the item type.
pWiasContext [in]Pointer to a WIA item context.
plTypePointer to a memory location that receives a value indicating the type of the item.
For more information, see WIA Item Type Flags.
On success, the function returns S_OK.
If the function fails, it returns a standard COM error or one of the WIA error codes.