From 96eb96dfb613e4c745db6bd1f53a92fe7e2290fc Mon Sep 17 00:00:00 2001 From: karlf Date: Thu, 11 Aug 2016 13:28:13 -0700 Subject: Updated for "Windows 10 Anniversary Update" (Version 1607) --- wia/ProdScan/FileConv.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 wia/ProdScan/FileConv.h (limited to 'wia/ProdScan/FileConv.h') diff --git a/wia/ProdScan/FileConv.h b/wia/ProdScan/FileConv.h new file mode 100644 index 00000000..13e0de97 --- /dev/null +++ b/wia/ProdScan/FileConv.h @@ -0,0 +1,37 @@ +/************************************************************************** +* +* Copyright © Microsoft Corporation +* +* File Title: FileConv.h +* +* Project: Production Scanner Driver Sample +* +* Description: This file contains definitions for the utility functions +* used by the sample driver for image file format conversions. +* +***************************************************************************/ + +#pragma once + +HRESULT +InitializeGDIPlus( + _Out_ ULONG_PTR *ppToken); + +HRESULT +ShutdownGDIPlus( + _In_ ULONG_PTR pToken); + +HRESULT +ConvertImageToDIB( + _In_ Image *pInputImage, + _Outptr_ IStream **ppOutputStream, + _Out_opt_ LONG *plImageWidth = NULL, + _Out_opt_ LONG *plImageHeight = NULL, + _Out_opt_ LONG *plOutputImageBPL = NULL); + +HRESULT +ConvertDibToRaw( + _In_ IStream *pInputStream, + _Out_ IStream **ppOutputStream); + + -- cgit v1.3.1