Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
5.5 KiB

  1. // TSDiag.idl : IDL source for TSDiag.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (TSDiag.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(50B5F461-FDC2-40D4-B2C5-1C2EE0CDA190),
  10. dual,
  11. helpstring("ITSDiagnosis Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface ITSDiagnosis : IDispatch
  15. {
  16. [propget, id(4), helpstring("property TestCount")] HRESULT TestCount([out, retval] long *pVal);
  17. [propget, id(5), helpstring("property TestDescription")] HRESULT TestDescription(int i, [out, retval] BSTR *pVal);
  18. [propget, id(6), helpstring("property TestApplicable")] HRESULT TestApplicable(int i, [out, retval] BOOL *pVal);
  19. [id(7), helpstring("method RunTest")] HRESULT RunTest(int i);
  20. [propget, id(8), helpstring("property TestResultString")] HRESULT TestResultString([out, retval] BSTR *pVal);
  21. [propget, id(9), helpstring("property TestResult")] HRESULT TestResult([out, retval] long *pVal);
  22. [propget, id(10), helpstring("property TestDetails")] HRESULT TestDetails(int i, [out, retval] BSTR *pVal);
  23. [propput, id(11), helpstring("property TestType")] HRESULT TestType([in] VARIANT newVal);
  24. [id(12), helpstring("method ExecuteIt")] HRESULT ExecuteIt(BSTR strCommand);
  25. [propput, id(13), helpstring("property TestType")] HRESULT RemoteMachineName([in] BSTR newVal);
  26. [propget, id(14), helpstring("property SuiteApplicable")] HRESULT SuiteApplicable (DWORD dwSuite, [out, retval] BOOL *pVal);
  27. [propget, id(15), helpstring("property SuiteErrorText")] HRESULT SuiteErrorText (DWORD dwSuite, [out, retval] BSTR *pVal);
  28. };
  29. [
  30. object,
  31. uuid(0C3E9E25-E3E8-4400-9A66-2B6CFC57F99B),
  32. dual,
  33. helpstring("ITSDiagnosis2 Interface"),
  34. pointer_default(unique)
  35. ]
  36. interface ITSDiagnosis2 : IDispatch
  37. {
  38. [id(4), helpstring("method ExecuteCommand")] HRESULT ExecuteCommand (BSTR strCommand);
  39. [propput, id(5), helpstring("property MachineName")] HRESULT MachineName ([in] BSTR newVal);
  40. [propget, id(6), helpstring("property Suites")] HRESULT Suites ([out, retval] VARIANT *pVal);
  41. };
  42. [
  43. object,
  44. dual,
  45. uuid(5387486d-3adb-4796-8fc1-848dc0568b4a),
  46. helpstring("ITestSuites Interface"),
  47. // noncreatable,
  48. pointer_default(unique)
  49. ]
  50. interface ITestSuites : IDispatch
  51. {
  52. /* to support this collection */
  53. [propget, id(4), helpstring("property Count")] HRESULT Count ([out, retval] long *pVal);
  54. [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum ([out, retval] LPUNKNOWN *pVal);
  55. [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item ([in] VARIANT Index, [out, retval] VARIANT *pVal);
  56. }
  57. [
  58. object,
  59. dual,
  60. uuid(4ab0cce2-72e0-4f7b-9479-031e307db801),
  61. helpstring("ITestSuite Interface"),
  62. // noncreatable,
  63. pointer_default(unique)
  64. ]
  65. interface ITestSuite : IDispatch
  66. {
  67. [propget, id(4), helpstring("property Name")] HRESULT Name ([out, retval] BSTR *pVal);
  68. [propget, id(5), helpstring("property Description")] HRESULT Description ([out, retval] BSTR *pVal);
  69. [propget, id(6), helpstring("property IsApplicable")] HRESULT IsApplicable([out, retval] BOOL *pVal);
  70. [propget, id(7), helpstring("property WhyNotApplicable")] HRESULT WhyNotApplicable ([out, retval] BSTR *pVal);
  71. /* to support this collection */
  72. [propget, id(8), helpstring("property Count")] HRESULT Count ([out, retval] long *pVal);
  73. [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum ([out, retval] LPUNKNOWN *pVal);
  74. [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item ([in] VARIANT Index, [out, retval] VARIANT *pVal);
  75. }
  76. [
  77. object,
  78. dual,
  79. uuid(8c148023-cb9f-4b1d-98e7-a912e6837b2c),
  80. helpstring("ITest Interface"),
  81. // noncreatable,
  82. pointer_default(unique)
  83. ]
  84. interface ITest : IDispatch
  85. {
  86. [propget, id(4), helpstring("property Name")] HRESULT Name ([out, retval] BSTR *pVal);
  87. [propget, id(5), helpstring("property Description")] HRESULT Description ([out, retval] BSTR *pVal);
  88. [propget, id(6), helpstring("property IsApplicable")] HRESULT IsApplicable([out, retval] BOOL *pVal);
  89. [propget, id(7), helpstring("property WhyNotApplicable")] HRESULT WhyNotApplicable ([out, retval] BSTR *pVal);
  90. [id(8), helpstring("method Execute")] HRESULT Execute ();
  91. [propget, id(9), helpstring("property Result")] HRESULT Result ([out, retval] long *pVal);
  92. [propget, id(10), helpstring("property ResultString")] HRESULT ResultString([out, retval] BSTR *pVal);
  93. [propget, id(11), helpstring("property Details")] HRESULT ResultDetails([out, retval] BSTR *pVal);
  94. }
  95. [
  96. uuid(324E5B9A-7AA4-4369-BECF-69FC85EC9F2D),
  97. version(1.0),
  98. helpstring("TSDiag 1.0 Type Library")
  99. ]
  100. library TSDIAGLib
  101. {
  102. importlib("stdole32.tlb");
  103. importlib("stdole2.tlb");
  104. [
  105. uuid(4B8F9150-F2CE-4168-8391-73D31E2DB6C3),
  106. helpstring("TSDiagnosis Class")
  107. ]
  108. coclass TSDiagnosis
  109. {
  110. [default] interface ITSDiagnosis2;
  111. interface ITSDiagnosis;
  112. };
  113. [
  114. uuid(67e395dd-e0b5-4375-948a-dfc3757415fa),
  115. helpstring("TestSuites Class"),
  116. noncreatable
  117. ]
  118. coclass TestSuites
  119. {
  120. [default] interface ITestSuites;
  121. }
  122. [
  123. uuid(378c7db0-071a-4f08-8745-b0e56a7d3cde),
  124. helpstring("TestSuite Class"),
  125. noncreatable
  126. ]
  127. coclass TestSuite
  128. {
  129. [default] interface ITestSuite;
  130. }
  131. [
  132. uuid(8e86e039-f244-4ee1-9374-0f25894ad369),
  133. helpstring("Test Class"),
  134. noncreatable
  135. ]
  136. coclass Test
  137. {
  138. [default] interface ITest;
  139. }
  140. };