home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 November / Chip_2002-11_cd1.bin / zkuste / vbasic / Data / Utils / WME71SDK.exe / RCDATA / CABINET / wmencvu.idl < prev    next >
Text File  |  2000-04-14  |  2KB  |  51 lines

  1. import "oaidl.idl";
  2.  
  3. cpp_quote( "EXTERN_GUID( IID_IWMEncDataView,            0xbb406aa0, 0x2b2b,0x11d3,0xb3,0x6b,0x00,0xc0,0x4f,0x61,0x08,0xff );" )
  4. cpp_quote( "EXTERN_GUID( CLSID_WMEncPreview,            0xC3043B13, 0xE649, 0x436A, 0x9C, 0xE7, 0x8D, 0xA8, 0xCB, 0x0B, 0xF7, 0xC8 );" )
  5.  
  6. //
  7. // If wmsdkidl header is not used, we will define WM_MEDIA_TYPE here.
  8. //
  9. cpp_quote( "#ifndef __wmsdkidl_h__" )
  10.  
  11. typedef struct _WMMediaType
  12. {
  13.     GUID majortype;
  14.     GUID subtype;
  15.     BOOL bFixedSizeSamples;
  16.     BOOL bTemporalCompression;
  17.     ULONG lSampleSize;
  18.     GUID formattype;
  19.     IUnknown *pUnk;
  20.     ULONG cbFormat;
  21.     [size_is(cbFormat)] BYTE *pbFormat;
  22. } WM_MEDIA_TYPE;
  23.  
  24. cpp_quote( "#endif" )
  25.  
  26.  
  27. ///////////////////////////////////////////////////////////////////////////////
  28. [
  29.     object,
  30.     uuid( BB406AA0-2B2B-11d3-B36B-00C04F6108FF ),
  31.     helpstring( "IWMEncDataView Interface"),
  32.     pointer_default(unique)
  33. ]
  34. interface IWMEncDataView : IUnknown
  35. {
  36.     HRESULT SetViewSetting( [in] DWORD dwStreamCookie, [in] DWORD dwSize, [in, size_is(dwSize)] BYTE* pData );
  37.     HRESULT GetViewSetting([in] DWORD dwStreamCookie, [in] DWORD* pdwSize, [in, size_is(*pdwSize)] BYTE* pData );
  38.  
  39.     HRESULT AddStream( [in] DWORD dwStreamCookie, [in] WM_MEDIA_TYPE *pType );
  40.     HRESULT RemoveStream( [in] DWORD dwStreamCookie );
  41.     HRESULT SetMediaFormat( [in] DWORD dwStreamCookie, [in] WM_MEDIA_TYPE *pType );
  42.     HRESULT GetMediaFormat( [in] DWORD dwStreamCookie, [out] WM_MEDIA_TYPE **ppType );
  43.     HRESULT Start( [in] DWORD dwStreamCookie );
  44.     HRESULT Stop( [in] DWORD dwStreamCookie );
  45.     HRESULT StartAll();
  46.     HRESULT StopAll();
  47. };
  48.  
  49.  
  50.  
  51.