// simplecom.idl : IDL source for simplecom // // This file will be processed by the MIDL tool to // produce the type library (simplecom.tlb) and marshalling code. import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(6BDC23E7-838E-4067-B0D9-DB3562B130DA), helpstring("ISimpletest Interface"), pointer_default(unique) ] interface ISimpletest : IUnknown{ [helpstring("method SetMode")] HRESULT SetMode([out,retval] LONG* Value); [helpstring("method Print")] HRESULT Print([in] BSTR str); [propget, helpstring("property Mode")] HRESULT Mode([out, retval] LONG* pVal); [propput, helpstring("property Mode")] HRESULT Mode([in] LONG newVal); }; [ uuid(512753F4-2F00-489F-AFFC-ED5F2F6F5AEF), version(1.0), helpstring("simplecom 1.0 Type Library") ] library simplecomLib { importlib("stdole2.tlb"); [ uuid(E4B7D28C-6401-471B-B24C-06E0E2E8F8E3), helpstring("Simpletest Class") ] coclass Simpletest { [default] interface ISimpletest; }; };