Déterminer si un pilote peut gérer le format d’entrée

L’exemple suivant montre comment vérifier le format d’entrée à l’aide de la macro ICDrawQuery .

// lpbiIn points to BITMAPINFOHEADER structure indicating the input 
// format. 

if (ICDrawQuery(hIC, lpbiIn) == ICERR_OK) 
{ 
    // Driver recognizes the input format. 
} 
else 
{ 
    // Need a different decompressor. 
}