// wiamdef.h
HRESULT wiasWriteBufToFile(
LONG lFlags,
[in] PMINIDRV_TRANSFER_CONTEXT pmdtc
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasWriteBufToFile function writes from a specified buffer to an image file.
lFlagsSpecifies a set of operation flags. This parameter should be set to 0.
pmdtc [in]Pointer to a MINIDRV_TRANSFER_CONTEXT structure.
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).
A WIA minidriver uses this function to write a buffer to any type of image file. A driver that intends to write a page of purely image data to a multipage TIFF file, delegating the addition of the appropriate tags, image file directory (IFD) entries, and other nonimage data to the WIA service, should use wiasWritePageBufToFile.