Single Driver for Windows Vista and Windows XP
You might want to have a single driver for both Windows Vista and Windows XP. In such situations, the driver handles data transfers by checking the flags. When IWiaMiniDrv::drvAcquireItemData is called for stream-based transfers, the lFlags parameter is set to either WIA_MINIDRV_TRANSFER_DOWNLOAD or WIA_MINIDRV_TRANSFER_UPLOAD. If neither of these bits is set, the transfer is a legacy transfer and the driver should follow the behavior that is outlined for Windows XP data transfers.