Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

404 lines
9.6 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for imgutil.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __imgutil_h__
  27. #define __imgutil_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ISniffStream_FWD_DEFINED__
  33. #define __ISniffStream_FWD_DEFINED__
  34. typedef interface ISniffStream ISniffStream;
  35. #endif /* __ISniffStream_FWD_DEFINED__ */
  36. #ifndef __IDithererImpl_FWD_DEFINED__
  37. #define __IDithererImpl_FWD_DEFINED__
  38. typedef interface IDithererImpl IDithererImpl;
  39. #endif /* __IDithererImpl_FWD_DEFINED__ */
  40. #ifndef __CoDitherToRGB8_FWD_DEFINED__
  41. #define __CoDitherToRGB8_FWD_DEFINED__
  42. #ifdef __cplusplus
  43. typedef class CoDitherToRGB8 CoDitherToRGB8;
  44. #else
  45. typedef struct CoDitherToRGB8 CoDitherToRGB8;
  46. #endif /* __cplusplus */
  47. #endif /* __CoDitherToRGB8_FWD_DEFINED__ */
  48. #ifndef __CoSniffStream_FWD_DEFINED__
  49. #define __CoSniffStream_FWD_DEFINED__
  50. #ifdef __cplusplus
  51. typedef class CoSniffStream CoSniffStream;
  52. #else
  53. typedef struct CoSniffStream CoSniffStream;
  54. #endif /* __cplusplus */
  55. #endif /* __CoSniffStream_FWD_DEFINED__ */
  56. #ifndef __CoMapMIMEToCLSID_FWD_DEFINED__
  57. #define __CoMapMIMEToCLSID_FWD_DEFINED__
  58. #ifdef __cplusplus
  59. typedef class CoMapMIMEToCLSID CoMapMIMEToCLSID;
  60. #else
  61. typedef struct CoMapMIMEToCLSID CoMapMIMEToCLSID;
  62. #endif /* __cplusplus */
  63. #endif /* __CoMapMIMEToCLSID_FWD_DEFINED__ */
  64. /* header files for imported files */
  65. #include "ocmm.h"
  66. #ifdef __cplusplus
  67. extern "C"{
  68. #endif
  69. void * __RPC_USER MIDL_user_allocate(size_t);
  70. void __RPC_USER MIDL_user_free( void * );
  71. /* interface __MIDL_itf_imgutil_0000 */
  72. /* [local] */
  73. STDAPI CreateMIMEMap( IMapMIMEToCLSID** ppMap );
  74. STDAPI DecodeImage( IStream* pStream, IMapMIMEToCLSID* pMap,
  75. IUnknown* pEventSink );
  76. STDAPI SniffStream( IStream* pInStream, UINT* pnFormat,
  77. IStream** ppOutStream );
  78. STDAPI GetMaxMIMEIDBytes( ULONG* pnMaxBytes );
  79. STDAPI IdentifyMIMEType( const BYTE* pbBytes, ULONG nBytes,
  80. UINT* pnFormat );
  81. STDAPI ComputeInvCMAP(const RGBQUAD *pRGBColors, ULONG nColors, BYTE *pInvTable,
  82. ULONG cbTable);
  83. STDAPI DitherTo8( BYTE * pDestBits, LONG nDestPitch, BYTE * pSrcBits, LONG nSrcPitch,
  84. REFGUID bfidSrc, RGBQUAD * prgbDestColors, RGBQUAD * prgbSrcColors, BYTE * pbDestInvMap,
  85. LONG x, LONG y, LONG cx, LONG cy, LONG lDestTrans, LONG lSrcTrans);
  86. STDAPI CreateDDrawSurfaceOnDIB(HBITMAP hbmDib, IDirectDrawSurface **ppSurface);
  87. extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_v0_0_c_ifspec;
  88. extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_v0_0_s_ifspec;
  89. #ifndef __ISniffStream_INTERFACE_DEFINED__
  90. #define __ISniffStream_INTERFACE_DEFINED__
  91. /* interface ISniffStream */
  92. /* [unique][helpstring][uuid][local][object] */
  93. EXTERN_C const IID IID_ISniffStream;
  94. #if defined(__cplusplus) && !defined(CINTERFACE)
  95. MIDL_INTERFACE("4EF17940-30E0-11d0-B724-00AA006C1A01")
  96. ISniffStream : public IUnknown
  97. {
  98. public:
  99. virtual HRESULT STDMETHODCALLTYPE Init(
  100. IStream *pStream) = 0;
  101. virtual HRESULT STDMETHODCALLTYPE Peek(
  102. void *pBuffer,
  103. ULONG nBytes,
  104. ULONG *pnBytesRead) = 0;
  105. };
  106. #else /* C style interface */
  107. typedef struct ISniffStreamVtbl
  108. {
  109. BEGIN_INTERFACE
  110. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  111. ISniffStream * This,
  112. /* [in] */ REFIID riid,
  113. /* [iid_is][out] */ void **ppvObject);
  114. ULONG ( STDMETHODCALLTYPE *AddRef )(
  115. ISniffStream * This);
  116. ULONG ( STDMETHODCALLTYPE *Release )(
  117. ISniffStream * This);
  118. HRESULT ( STDMETHODCALLTYPE *Init )(
  119. ISniffStream * This,
  120. IStream *pStream);
  121. HRESULT ( STDMETHODCALLTYPE *Peek )(
  122. ISniffStream * This,
  123. void *pBuffer,
  124. ULONG nBytes,
  125. ULONG *pnBytesRead);
  126. END_INTERFACE
  127. } ISniffStreamVtbl;
  128. interface ISniffStream
  129. {
  130. CONST_VTBL struct ISniffStreamVtbl *lpVtbl;
  131. };
  132. #ifdef COBJMACROS
  133. #define ISniffStream_QueryInterface(This,riid,ppvObject) \
  134. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  135. #define ISniffStream_AddRef(This) \
  136. (This)->lpVtbl -> AddRef(This)
  137. #define ISniffStream_Release(This) \
  138. (This)->lpVtbl -> Release(This)
  139. #define ISniffStream_Init(This,pStream) \
  140. (This)->lpVtbl -> Init(This,pStream)
  141. #define ISniffStream_Peek(This,pBuffer,nBytes,pnBytesRead) \
  142. (This)->lpVtbl -> Peek(This,pBuffer,nBytes,pnBytesRead)
  143. #endif /* COBJMACROS */
  144. #endif /* C style interface */
  145. HRESULT STDMETHODCALLTYPE ISniffStream_Init_Proxy(
  146. ISniffStream * This,
  147. IStream *pStream);
  148. void __RPC_STUB ISniffStream_Init_Stub(
  149. IRpcStubBuffer *This,
  150. IRpcChannelBuffer *_pRpcChannelBuffer,
  151. PRPC_MESSAGE _pRpcMessage,
  152. DWORD *_pdwStubPhase);
  153. HRESULT STDMETHODCALLTYPE ISniffStream_Peek_Proxy(
  154. ISniffStream * This,
  155. void *pBuffer,
  156. ULONG nBytes,
  157. ULONG *pnBytesRead);
  158. void __RPC_STUB ISniffStream_Peek_Stub(
  159. IRpcStubBuffer *This,
  160. IRpcChannelBuffer *_pRpcChannelBuffer,
  161. PRPC_MESSAGE _pRpcMessage,
  162. DWORD *_pdwStubPhase);
  163. #endif /* __ISniffStream_INTERFACE_DEFINED__ */
  164. #ifndef __IDithererImpl_INTERFACE_DEFINED__
  165. #define __IDithererImpl_INTERFACE_DEFINED__
  166. /* interface IDithererImpl */
  167. /* [unique][helpstring][uuid][local][object] */
  168. EXTERN_C const IID IID_IDithererImpl;
  169. #if defined(__cplusplus) && !defined(CINTERFACE)
  170. MIDL_INTERFACE("7C48E840-3910-11d0-86FC-00A0C913F750")
  171. IDithererImpl : public IUnknown
  172. {
  173. public:
  174. virtual HRESULT STDMETHODCALLTYPE SetDestColorTable(
  175. ULONG nColors,
  176. const RGBQUAD *prgbColors) = 0;
  177. virtual HRESULT STDMETHODCALLTYPE SetEventSink(
  178. IImageDecodeEventSink *pEventSink) = 0;
  179. };
  180. #else /* C style interface */
  181. typedef struct IDithererImplVtbl
  182. {
  183. BEGIN_INTERFACE
  184. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  185. IDithererImpl * This,
  186. /* [in] */ REFIID riid,
  187. /* [iid_is][out] */ void **ppvObject);
  188. ULONG ( STDMETHODCALLTYPE *AddRef )(
  189. IDithererImpl * This);
  190. ULONG ( STDMETHODCALLTYPE *Release )(
  191. IDithererImpl * This);
  192. HRESULT ( STDMETHODCALLTYPE *SetDestColorTable )(
  193. IDithererImpl * This,
  194. ULONG nColors,
  195. const RGBQUAD *prgbColors);
  196. HRESULT ( STDMETHODCALLTYPE *SetEventSink )(
  197. IDithererImpl * This,
  198. IImageDecodeEventSink *pEventSink);
  199. END_INTERFACE
  200. } IDithererImplVtbl;
  201. interface IDithererImpl
  202. {
  203. CONST_VTBL struct IDithererImplVtbl *lpVtbl;
  204. };
  205. #ifdef COBJMACROS
  206. #define IDithererImpl_QueryInterface(This,riid,ppvObject) \
  207. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  208. #define IDithererImpl_AddRef(This) \
  209. (This)->lpVtbl -> AddRef(This)
  210. #define IDithererImpl_Release(This) \
  211. (This)->lpVtbl -> Release(This)
  212. #define IDithererImpl_SetDestColorTable(This,nColors,prgbColors) \
  213. (This)->lpVtbl -> SetDestColorTable(This,nColors,prgbColors)
  214. #define IDithererImpl_SetEventSink(This,pEventSink) \
  215. (This)->lpVtbl -> SetEventSink(This,pEventSink)
  216. #endif /* COBJMACROS */
  217. #endif /* C style interface */
  218. HRESULT STDMETHODCALLTYPE IDithererImpl_SetDestColorTable_Proxy(
  219. IDithererImpl * This,
  220. ULONG nColors,
  221. const RGBQUAD *prgbColors);
  222. void __RPC_STUB IDithererImpl_SetDestColorTable_Stub(
  223. IRpcStubBuffer *This,
  224. IRpcChannelBuffer *_pRpcChannelBuffer,
  225. PRPC_MESSAGE _pRpcMessage,
  226. DWORD *_pdwStubPhase);
  227. HRESULT STDMETHODCALLTYPE IDithererImpl_SetEventSink_Proxy(
  228. IDithererImpl * This,
  229. IImageDecodeEventSink *pEventSink);
  230. void __RPC_STUB IDithererImpl_SetEventSink_Stub(
  231. IRpcStubBuffer *This,
  232. IRpcChannelBuffer *_pRpcChannelBuffer,
  233. PRPC_MESSAGE _pRpcMessage,
  234. DWORD *_pdwStubPhase);
  235. #endif /* __IDithererImpl_INTERFACE_DEFINED__ */
  236. #ifndef __ImgUtilLib_LIBRARY_DEFINED__
  237. #define __ImgUtilLib_LIBRARY_DEFINED__
  238. /* library ImgUtilLib */
  239. /* [helpstring][version][uuid] */
  240. EXTERN_C const IID LIBID_ImgUtilLib;
  241. EXTERN_C const CLSID CLSID_CoDitherToRGB8;
  242. #ifdef __cplusplus
  243. class DECLSPEC_UUID("A860CE50-3910-11d0-86FC-00A0C913F750")
  244. CoDitherToRGB8;
  245. #endif
  246. EXTERN_C const CLSID CLSID_CoSniffStream;
  247. #ifdef __cplusplus
  248. class DECLSPEC_UUID("6A01FDA0-30DF-11d0-B724-00AA006C1A01")
  249. CoSniffStream;
  250. #endif
  251. EXTERN_C const CLSID CLSID_CoMapMIMEToCLSID;
  252. #ifdef __cplusplus
  253. class DECLSPEC_UUID("30C3B080-30FB-11d0-B724-00AA006C1A01")
  254. CoMapMIMEToCLSID;
  255. #endif
  256. #endif /* __ImgUtilLib_LIBRARY_DEFINED__ */
  257. /* Additional Prototypes for ALL interfaces */
  258. /* end of Additional Prototypes */
  259. #ifdef __cplusplus
  260. }
  261. #endif
  262. #endif