wiasWriteBufToFile function (wiamdef.h)
The wiasWriteBufToFile function writes from a specified buffer to an image file.
Syntax
HRESULT wiasWriteBufToFile(
LONG lFlags,
[in] PMINIDRV_TRANSFER_CONTEXT pmdtc
);
Parameters
lFlags
Specifies a set of operation flags. This parameter should be set to 0.
[in] pmdtc
Pointer to a MINIDRV_TRANSFER_CONTEXT structure.
Return value
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).
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Microsoft Windows Me and in Windows XP and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | wiamdef.h (include Wiamdef.h) |
Library | Wiaservc.lib |
DLL | Wiaservc.dll |