// TheServer.idl : IDL source for TheServer.dll // // This file will be processed by the MIDL tool to // produce the type library (TheServer.tlb) and marshalling code. import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(198C064D-B949-11D2-8902-000000000000), dual, helpstring("ITheServerComObject Interface"), pointer_default(unique) ] interface ITheServerComObject : IDispatch { HRESULT HelloWorld(); HRESULT AcceptNewValue([in] long lNewValue, [out, retval] long* lpFormerValue); }; [ object, uuid(81323871-BCBA-11d2-8902-000000000000), dual, helpstring("MySink Object Interface"), pointer_default(unique) ] interface IMySinkID : IDispatch { HRESULT RecieveNewData([in] long lNewValue); }; [ uuid(198C0640-B949-11D2-8902-000000000000), version(1.0), helpstring("TheServer 1.0 Type Library") ] library THESERVERLib { importlib("stdole32.tlb"); importlib("stdole2.tlb"); [ uuid(198C064E-B949-11D2-8902-000000000000), helpstring("TheServerComObject Class") ] coclass TheServerComObject { [default] interface ITheServerComObject; [default, source] interface IMySinkID; }; };