wiauGetValidFormats - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wiautil-wiaugetvalidformats)

wiauGetValidFormats function

Description

The wiauGetValidFormats function calls the IWiaMiniDrv::drvGetWiaFormatInfo method and makes a list of valid formats, using a specified tymed value.

Parameters

pDrv [in]

Points to the WIA minidriver object. This parameter should be set to this.

pWiasContext [in]

Pointer to a WIA item context.

TymedValue

Specifies 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.

Return value

On success, the function returns S_OK. If the function fails, it returns a standard COM error.

Remarks

The caller of this function is responsible for freeing the format array, using the delete[] operator.