// wiamdef.h
HRESULT wiasGetRootItem(
[in] BYTE *pWiasContext,
[out] BYTE **ppWiasContext
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasGetRootItem function retrieves the root item context of a specified WIA item.
pWiasContext [in]Pointer to a WIA item context.
ppWiasContext [out]Pointer to a memory location that receives the address of the WIA item's root item context.
On success, the function returns S_OK.
If the function fails, it returns a standard COM error or one of the WIA error codes.