// wiautil.h
HRESULT wiauGetValidFormats(
[in] IWiaMiniDrv *pDrv,
[in] BYTE *pWiasContext,
LONG TymedValue,
[out] int *pNumFormats,
[out] GUID **ppFormatArray
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiauGetValidFormats function calls the IWiaMiniDrv::drvGetWiaFormatInfo method and makes a list of valid formats, using a specified tymed value.
pDrv [in]Points to the WIA minidriver object. This parameter should be set to this.
pWiasContext [in]Pointer to a WIA item context.
TymedValueSpecifies the tymed value to search for.
pNumFormats [out]Pointer to a memory location that receives the number of formats.
ppFormatArray [out]Pointer to a memory location that receives the address of the array of format GUIDs.
On success, the function returns S_OK. If the function fails, it returns a standard COM error.
The caller of this function is responsible for freeing the format array, using the delete[] operator.