home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 November / Chip_2002-11_cd1.bin / zkuste / vbasic / Data / Utils / WME71SDK.exe / RCDATA / CABINET / LocalAgent.idl < prev    next >
Text File  |  2000-05-27  |  3KB  |  81 lines

  1. // LocalAgent.idl : IDL source for LocalAgent.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (LocalAgent.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.  
  10. #define DISPID_COLLECTION_LENGTH        9
  11. #define DISPID_COLLECTION_COUNT         10
  12. #define DISPID_COLLECTION_ADD           11
  13. #define DISPID_COLLECTION_REMOVE        12
  14.  
  15. cpp_quote( "EXTERN_GUID( CLSID_WMEncoderNamesCollection,    0xC728738A, 0xC81C, 0x4CDB, 0xBD, 0x92, 0x6B, 0x7A, 0xBF, 0x4C, 0xF3, 0xF0 );" )
  16. cpp_quote( "EXTERN_GUID( IID_IWMEncoderAgent,               0x00BB9AE0, 0xA7B8, 0x4966, 0x93, 0x7D, 0x6A, 0xED, 0x09, 0x2E, 0x7E, 0x4F );" )
  17. cpp_quote( "EXTERN_GUID( CLSID_WMEncoderAgent,              0xB6913798, 0x10BF, 0x430C, 0xA2, 0x6F, 0xE6, 0xDE, 0xE2, 0x2E, 0xB9, 0xBA );" )
  18. cpp_quote( "EXTERN_GUID( LIBID_WMEncAgtLib,                 0xD9655475, 0x53BD, 0x431C, 0xB2, 0x2F, 0xCC, 0x98, 0xBC, 0xE3, 0x30, 0x82 );" )
  19. cpp_quote( "EXTERN_GUID( IID_IWMEncoderNamesCollection,     0x8EE540F8, 0xDEF6, 0x4D3E, 0xA2, 0xC3, 0x22, 0x67, 0xB1, 0x0B, 0x7F, 0x54 );" )
  20.  
  21.     [
  22.         object,
  23.         uuid(8EE540F8-DEF6-4D3E-A2C3-2267B10B7F54),
  24.         dual,
  25.         helpstring("IEncoderNamesCollection Interface"),
  26.         pointer_default(unique)
  27.     ]
  28.     interface IWMEncoderNamesCollection : IDispatch
  29.     {
  30.         [propget, id(DISPID_COLLECTION_LENGTH), helpstring("property length")] 
  31.         HRESULT length([out, retval] long *plCount);
  32.  
  33.         [propget, id(DISPID_COLLECTION_COUNT), helpstring("property Count")] 
  34.         HRESULT Count([out, retval] long *plCount);
  35.  
  36.         [propget, restricted, id(DISPID_NEWENUM), helpstring("property _NewEnum")] 
  37.         HRESULT _NewEnum([out, retval] LPUNKNOWN *pIUnknown);
  38.  
  39.         [id(DISPID_VALUE), helpstring("method Item")] 
  40.         HRESULT Item([in] long iIndex, [out, retval] BSTR* pbstrValue );
  41.     };
  42.  
  43.     [
  44.         object,
  45.         uuid(00BB9AE0-A7B8-4966-937D-6AED092E7E4F),
  46.         dual,
  47.         helpstring("IWMEncoderAgent Interface"),
  48.         pointer_default(unique)
  49.     ]
  50.     interface IWMEncoderAgent : IDispatch
  51.     {
  52.         [id(1), helpstring("method CreateEncoder")] HRESULT CreateEncoder([in] BSTR bstrEncoderName, [in, optional] VARIANT varEncoderProgId, 
  53.                                                                           [out, retval] IDispatch** ppDispApp);
  54.         [id(2), helpstring("method GetEncoder")] HRESULT GetEncoder([in] BSTR name, [out, retval] IDispatch** ppDispEncoder);
  55.         [propget, id(3), helpstring("property EncoderNamesCollection")] HRESULT EncoderNamesCollection([out, retval] IDispatch** pVal);
  56.         [id(4), helpstring("method Register")] HRESULT Register([in] BSTR bstrName, [in] IDispatch* pUnkEncoder, [out, retval] DWORD *pdwCookie);
  57.         [id(5), helpstring("method UnRegister")] HRESULT UnRegister([in] DWORD dwCookie);
  58.     };
  59.  
  60. [
  61.     uuid(D9655475-53BD-431C-B22F-CC98BCE33082),
  62.     version(1.0),
  63.     helpstring("Windows Media Encoder Agent")
  64. ]
  65. library WMEncAgtLib
  66. {
  67.     importlib("stdole32.tlb");
  68.     importlib("stdole2.tlb");
  69.  
  70.     interface IWMEncoderNamesCollection;
  71.  
  72.     [
  73.         uuid(B6913798-10BF-430C-A26F-E6DEE22EB9BA),
  74.         helpstring("WMEncoderAgent Class")
  75.     ]
  76.     coclass WMEncoderAgent
  77.     {
  78.         [default] interface IWMEncoderAgent;
  79.     };
  80. };
  81.