pippo.idl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // TestServer.idl : IDL source for TestServer.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (TestServer.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(50086EE8-F535-464B-806E-365ADBB727CF),
  10. dual,
  11. helpstring("ITestServerApp Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface ITestServerApp : IDispatch
  15. {
  16. [id(1), helpstring("method Test1")] HRESULT Test1([out, retval] ITestServerApp **pVal);
  17. [id(2), helpstring("method Test2")] HRESULT Test2([out, retval] VARIANT *pVar);
  18. [propget, id(3), helpstring("property MyProp1")] HRESULT MyProp1([out, retval] long *pVal);
  19. };
  20. [
  21. object,
  22. uuid(618DB2A3-D5BD-4850-B66A-828727EB37E5),
  23. dual,
  24. helpstring("IPippo Interface"),
  25. pointer_default(unique)
  26. ]
  27. interface IPippo : IDispatch
  28. {
  29. [id(1), helpstring("method Method1")] HRESULT Method1([out, retval] IPippo **val);
  30. [propget, id(2), helpstring("property MyProp1")] HRESULT MyProp1([out, retval] long *pVal);
  31. [id(3), helpstring("method Method2")] HRESULT Method2([in] long in1, [in, out] long *inout1,
  32. [out, retval] long *val);
  33. [id(4), helpstring("method Method3")] HRESULT Method3([in] VARIANT in1,
  34. [out, retval] VARIANT *val);
  35. };
  36. [
  37. uuid(7783054E-9A20-4584-8C62-6ED2A08F6AC6),
  38. version(1.0),
  39. helpstring("TestServer 1.0 Type Library")
  40. ]
  41. library TESTSERVERLib
  42. {
  43. importlib("stdole32.tlb");
  44. importlib("stdole2.tlb");
  45. importlib("msado15.dll");
  46. [
  47. uuid(49E44E89-5A72-4456-B1D5-68268A19E798),
  48. helpstring("TestServerApp Class")
  49. ]
  50. coclass TestServerApp
  51. {
  52. [default] interface ITestServerApp;
  53. };
  54. [
  55. uuid(1F0F75D6-BD63-41B9-9F88-2D9D2E1AA5C3),
  56. helpstring("Pippo Class")
  57. ]
  58. coclass Pippo
  59. {
  60. [default] interface IPippo;
  61. };
  62. };