// NewATLScol.idl : source IDL pour NewATLScol // // Ce fichier sera traité par l'outil MIDL pour // produire la bibliothèque de types (NewATLScol.tlb) et le code de marshaling. #include "olectl.h" import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(3CB81882-8A3D-4262-81C0-92856355B114), dual, nonextensible, helpstring("Interface IScolPlugin"), pointer_default(unique) ] interface IScolPlugin : IDispatch{ [propget, id(1), helpstring("propriété DownloadURL")] HRESULT DownloadURL([out, retval] BSTR* pVal); [propput, id(1), helpstring("propriété DownloadURL")] HRESULT DownloadURL([in] BSTR newVal); [id(2), helpstring("méthode SendScolMessage")] HRESULT SendScolMessage([in] BSTR* msg, [out,retval] LONG* result); [id(3), helpstring("méthode LaunchMachine")] HRESULT LaunchMachine([in] BSTR* CmdLine, [in] LONG CmdShow, [in] LONG MemSize, [out,retval] LONG* result); [propget, id(4), helpstring("propriété ForceInstall")] HRESULT ForceInstall([out, retval] BSTR* pVal); [propput, id(4), helpstring("propriété ForceInstall")] HRESULT ForceInstall([in] BSTR newVal); [propget, id(5), helpstring("propriété DownloadSize")] HRESULT DownloadSize([out, retval] LONG* pVal); [propput, id(5), helpstring("propriété DownloadSize")] HRESULT DownloadSize([in] LONG newVal); [propget, id(6), helpstring("propriété ScolVersionNeeded")] HRESULT ScolVersionNeeded([out, retval] BSTR* pVal); [propput, id(6), helpstring("propriété ScolVersionNeeded")] HRESULT ScolVersionNeeded([in] BSTR newVal); }; [ #ifdef MSCOL uuid(13162A5A-2CA3-48bf-BC92-24F11F3B8F59), #else uuid(5F051625-123D-4C9D-AA7C-80BBB9DFE51E), #endif version(1.0), helpstring("Bibliothèque de types NewATLScol 1.0") ] library NewATLScolLib { importlib("stdole2.tlb"); [ uuid(CEFA78A0-6269-4690-B6BD-5A12118A5EA5), helpstring("Interface _IScolPluginEvents") ] dispinterface _IScolPluginEvents { properties: methods: [id(1), helpstring("méthode onScolEnd")] HRESULT onScolEnd(void); [id(2), helpstring("méthode onScolMessage")] void onScolMessage([in] BSTR* msg); }; [ #ifdef MSCOL uuid(4453B7DA-6996-4059-AA92-69E5C729B3F8), #else uuid(7A96FF35-4937-11D1-8F2C-00609779BDA3), #endif control, helpstring("ScolPlugin Class") ] coclass ScolPlugin { [default] interface IScolPlugin; [default, source] dispinterface _IScolPluginEvents; }; };