// wiamdef.h
HRESULT wiasReadPropGuid(
[in] BYTE *pWiasContext,
PROPID propid,
[out] GUID *pguidVal,
[out, optional] GUID *pguidValOld,
BOOL bMustExist
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasReadPropGuid function retrieves a GUID property value from a WIA item.
pWiasContext [in]Pointer to a WIA item context.
propidSpecifies the property identifier.
pguidVal [out]Pointer to a memory location that receives the GUID property value.
pguidValOld [out, optional]Pointer to a memory location that receives the previous value of the GUID property data. If this information is not needed, this parameter can be set to NULL.
bMustExistIndicates whether the property must exist. If set to TRUE, the property must exist; if set to FALSE, the property does not have to exist.
On success, the function returns S_OK. If the function fails, it returns a standard COM error or one of the WIA_ERROR_XXX errors (described in the Microsoft Windows SDK documentation).