Leaked source code of windows server 2003
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.

87 lines
2.5 KiB

  1. // BitmapSurfaces.idl : IDL source for BitmapSurfaces.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (BitmapSurfaces.tlb) and marshalling code.
  5. import "ocmm.idl";
  6. interface IDirectDrawSurface;
  7. cpp_quote( "STDAPI CreateMIMEMap( IMapMIMEToCLSID** ppMap );" )
  8. cpp_quote( "STDAPI DecodeImage( IStream* pStream, IMapMIMEToCLSID* pMap," )
  9. cpp_quote( " IUnknown* pEventSink );" )
  10. cpp_quote( "STDAPI SniffStream( IStream* pInStream, UINT* pnFormat," )
  11. cpp_quote( " IStream** ppOutStream );" )
  12. cpp_quote( "STDAPI GetMaxMIMEIDBytes( ULONG* pnMaxBytes );" )
  13. cpp_quote( "STDAPI IdentifyMIMEType( const BYTE* pbBytes, ULONG nBytes," )
  14. cpp_quote( " UINT* pnFormat );" )
  15. cpp_quote( "STDAPI ComputeInvCMAP(const RGBQUAD *pRGBColors, ULONG nColors, BYTE *pInvTable," )
  16. cpp_quote( " ULONG cbTable);" )
  17. cpp_quote( "STDAPI DitherTo8( BYTE * pDestBits, LONG nDestPitch, BYTE * pSrcBits, LONG nSrcPitch," )
  18. cpp_quote( " REFGUID bfidSrc, RGBQUAD * prgbDestColors, RGBQUAD * prgbSrcColors, BYTE * pbDestInvMap," )
  19. cpp_quote( " LONG x, LONG y, LONG cx, LONG cy, LONG lDestTrans, LONG lSrcTrans);" )
  20. cpp_quote( "STDAPI CreateDDrawSurfaceOnDIB(HBITMAP hbmDib, IDirectDrawSurface **ppSurface);" )
  21. [
  22. object,
  23. local,
  24. uuid( 4EF17940-30E0-11d0-B724-00AA006C1A01 ),
  25. helpstring( "ISniffStream Interface" ),
  26. pointer_default( unique )
  27. ]
  28. interface ISniffStream : IUnknown
  29. {
  30. HRESULT Init( IStream* pStream );
  31. HRESULT Peek( void* pBuffer, ULONG nBytes, ULONG* pnBytesRead );
  32. };
  33. [
  34. object,
  35. local,
  36. uuid( 7C48E840-3910-11d0-86FC-00A0C913F750 ),
  37. helpstring( "IDithererImpl Interface" ),
  38. pointer_default( unique )
  39. ]
  40. interface IDithererImpl : IUnknown
  41. {
  42. HRESULT SetDestColorTable( ULONG nColors, const RGBQUAD* prgbColors );
  43. HRESULT SetEventSink( IImageDecodeEventSink* pEventSink );
  44. };
  45. [
  46. uuid( CF790840-2DC4-11D0-B724-00AA006C1A01 ),
  47. version( 1.0 ),
  48. helpstring( "ImgUtil 1.0 Type Library")
  49. ]
  50. library ImgUtilLib
  51. {
  52. importlib("stdole2.tlb");
  53. [
  54. uuid( A860CE50-3910-11d0-86FC-00A0C913F750 ),
  55. helpstring( "CoDitherToRGB8 Class" )
  56. ]
  57. coclass CoDitherToRGB8
  58. {
  59. [default] interface IImageDecodeEventSink;
  60. };
  61. [
  62. uuid( 6A01FDA0-30DF-11d0-B724-00AA006C1A01 ),
  63. helpstring( "CoSniffStream Class" )
  64. ]
  65. coclass CoSniffStream
  66. {
  67. [default] interface IStream;
  68. };
  69. [
  70. uuid( 30C3B080-30FB-11d0-B724-00AA006C1A01 ),
  71. helpstring( "CoMapMIMEToCLSID Class" )
  72. ]
  73. coclass CoMapMIMEToCLSID
  74. {
  75. [default] interface IMapMIMEToCLSID;
  76. };
  77. };