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.

168 lines
5.3 KiB

  1. // TestSnapins.idl : IDL source
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (TestSnapins.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. import "mmc.idl";
  8. [
  9. uuid(106C1EE9-E93B-4ad2-92DE-BD4E099F595F),
  10. version(1.0),
  11. helpstring("Microsoft Test Snapins 1.0 Type Library")
  12. ]
  13. library TestSnapinsLib
  14. {
  15. importlib("stdole32.tlb");
  16. importlib("stdole2.tlb");
  17. // DO NOT CHANGE THE COMMENT ON THE NEXT LINE
  18. //-----------------_SNAPINS_-----------------
  19. // Sample Snapin
  20. [
  21. uuid(24EFEBE7-7E7C-468a-B19A-4D2EFB24862E),
  22. helpstring("ComponentData CSampleSnapin Class")
  23. ]
  24. coclass ComponentData_CSampleSnapin
  25. {
  26. [default] interface IComponentData;
  27. };
  28. [
  29. uuid(A29C05B3-C11D-44d9-A5FE-78A26EEEB120),
  30. helpstring("SnapinAbout CSampleSnapin Class")
  31. ]
  32. coclass SnapinAbout_CSampleSnapin
  33. {
  34. [default] interface ISnapinAbout;
  35. };
  36. // Sample namespace extension.
  37. [
  38. uuid(AD9D75F5-5F13-4ac1-A46E-9AC0136C47B0),
  39. helpstring("ComponentData Sample Namespace Snapin Class")
  40. ]
  41. coclass ComponentData_CSampleExtnSnapin
  42. {
  43. [default] interface IComponentData;
  44. };
  45. [
  46. uuid(266AD800-BF6D-441b-AD59-A3AFC422FB1B),
  47. helpstring("SnapinAbout Sample Namespace Snapin Class")
  48. ]
  49. coclass SnapinAbout_CSampleExtnSnapin
  50. {
  51. [default] interface ISnapinAbout;
  52. };
  53. // Power test snapin.
  54. [
  55. uuid(1fef563e-33a4-446f-8b2d-66212861c88a),
  56. helpstring("ComponentData CPowerTestSnapin Class")
  57. ]
  58. coclass ComponentData_CPowerTestSnapin
  59. {
  60. [default] interface IComponentData;
  61. };
  62. [
  63. uuid(92627920-d1dc-46b7-b253-571d48dbecc0),
  64. helpstring("SnapinAbout CPowerTestSnapin Class")
  65. ]
  66. coclass SnapinAbout_CPowerTestSnapin
  67. {
  68. [default] interface ISnapinAbout;
  69. };
  70. // Component2 Test snapin
  71. [
  72. object,
  73. uuid(0F1070D0-68F8-41cd-9169-65F553313B9F),
  74. oleautomation,
  75. dual,
  76. helpstring("ISnapinTasks Interface")
  77. ]
  78. interface ISnapinTasks : IDispatch
  79. {
  80. [id(1), helpstring("method that passes a string from script into the snapin")]
  81. HRESULT StringFromScriptToSnapin([in] BSTR bstrMessage);
  82. [id(2), helpstring("method that passes a string from snapin to the calling script")]
  83. HRESULT StringFromSnapinToScript([out, retval] BSTR *pbstrMessage);
  84. [propget, id(3), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal);
  85. [propput, id(3), helpstring("property Name")] HRESULT Name([in] BSTR newVal);
  86. };
  87. [
  88. uuid(99C5C401-4FBE-40ec-92AE-8560A0BF39F6),
  89. helpstring("ComponentData CComponent2TestSnapin Class")
  90. ]
  91. coclass ComponentData_CComponent2TestSnapin
  92. {
  93. [default] interface IComponentData;
  94. };
  95. [
  96. uuid(BBF00BB5-1EF3-43af-A65E-D371F2F72357),
  97. helpstring("SnapinAbout CComponent2TestSnapin Class")
  98. ]
  99. coclass SnapinAbout_CComponent2TestSnapin
  100. {
  101. [default] interface ISnapinAbout;
  102. };
  103. // Rename snapin
  104. [
  105. uuid(99C5C402-4FBE-40ec-92AE-8560A0BF39F6),
  106. helpstring("ComponentData CRenameSnapin Class")
  107. ]
  108. coclass ComponentData_CRenameSnapin
  109. {
  110. [default] interface IComponentData;
  111. };
  112. [
  113. uuid(BBF00BB6-1EF3-43af-A65E-D371F2F72357),
  114. helpstring("SnapinAbout CRenameSnapin Class")
  115. ]
  116. coclass SnapinAbout_CRenameSnapin
  117. {
  118. [default] interface ISnapinAbout;
  119. };
  120. // DragDrop Snapin
  121. [
  122. uuid(FF9744BA-034C-4c30-921F-554C77025535),
  123. helpstring("ComponentData CDragDropSnapin Class")
  124. ]
  125. coclass ComponentData_CDragDropSnapin
  126. {
  127. [default] interface IComponentData;
  128. };
  129. [
  130. uuid(50932BE3-B491-46c9-BBA7-1B9FF502F9A2),
  131. helpstring("SnapinAbout CDragDropSnapin Class")
  132. ]
  133. coclass SnapinAbout_CDragDropSnapin
  134. {
  135. [default] interface ISnapinAbout;
  136. };
  137. // OCX Caching Snapin
  138. [
  139. uuid(2C629B90-0C7F-4c7d-B37E-C7159FACB106),
  140. helpstring("ComponentData COCXCachingSnapin Class")
  141. ]
  142. coclass ComponentData_COCXCachingSnapin
  143. {
  144. [default] interface IComponentData;
  145. };
  146. [
  147. uuid(C7485BC4-874E-49ba-8BBC-A8D38BDB7D5C),
  148. helpstring("SnapinAbout COCXCachingSnapin Class")
  149. ]
  150. coclass SnapinAbout_COCXCachingSnapin
  151. {
  152. [default] interface ISnapinAbout;
  153. };
  154. };