Source code of Windows XP (NT5)
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.

262 lines
10 KiB

  1. #include <olectl.h>
  2. // oleprn.idl : IDL source for oleprn.dll
  3. //
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (oleprn.tlb) and marshalling code.
  6. import "oaidl.idl";
  7. import "ocidl.idl";
  8. import "objsafe.idl";
  9. [
  10. object,
  11. uuid(7586B34D-EC08-11D0-A466-00C04FC30DF6),
  12. dual,
  13. helpstring("Iprturl Interface"),
  14. pointer_default(unique)
  15. ]
  16. interface Iprturl : IDispatch
  17. {
  18. [propget, id(1), helpstring("property ClientInfo")]
  19. HRESULT ClientInfo([out, retval] long *lpdwInfo);
  20. #ifndef WIN9X
  21. [propget, id(5), helpstring("property SupportLinkName")]
  22. HRESULT SupportLinkName([out, retval] BSTR *pVal);
  23. [propget, id(6), helpstring("property SupportLink")]
  24. HRESULT SupportLink([out, retval] BSTR *pVal);
  25. [propput, id(7), helpstring("property PrinterName")]
  26. HRESULT PrinterName([in] BSTR newVal);
  27. [propget, id(8), helpstring("property PrinterWebURL")]
  28. HRESULT PrinterWebURL([out, retval] BSTR *pVal);
  29. [propget, id(9), helpstring("property PrinterOemURL")]
  30. HRESULT PrinterOemURL([out, retval] BSTR *pVal);
  31. [propget, id(10), helpstring("property PrinterOemName")]
  32. HRESULT PrinterOemName([out, retval] BSTR *pVal);
  33. #endif
  34. };
  35. #ifndef WIN9X
  36. [
  37. object,
  38. uuid(4F664F90-FF01-11D0-8AED-00C04FD7B597),
  39. dual,
  40. helpstring("ISNMP Interface"),
  41. pointer_default(unique)
  42. ]
  43. interface ISNMP : IDispatch
  44. {
  45. [id(1), helpstring("method Open")] HRESULT Open(BSTR bstrHost, BSTR bstrCommunity, [in,optional] VARIANT varRetry, [in,optional] VARIANT varTimeout);
  46. [id(2), helpstring("method Get")] HRESULT Get(BSTR bstrOID, [out,retval]VARIANT *varValue);
  47. [id(3), helpstring("method GetList")] HRESULT GetList([in]VARIANT *varList, [out,retval]VARIANT *varValue);
  48. [id(4), helpstring("method GetTree")] HRESULT GetTree([in] BSTR varTree, [out,retval]VARIANT *varValue);
  49. [id(5), helpstring("method Close")] HRESULT Close();
  50. [id(6), helpstring("method OIDFromString")] HRESULT OIDFromString(BSTR bstrOID, [out, retval]VARIANT *varOID);
  51. [id(7), helpstring("method Set")] HRESULT Set(BSTR bstrOID, VARIANT varValue);
  52. [id(8), helpstring("method SetList")] HRESULT SetList([in] VARIANT *varName, [in] VARIANT *varValue);
  53. [id(9), helpstring("method GetAsByte")] HRESULT GetAsByte (BSTR bstrOID, [out,retval]UINT *puValue);
  54. }
  55. [ object,
  56. uuid(3E4D4F1B-2AEE-11D1-9D3D-00C04FC30DF6),
  57. dual,
  58. helpstring("Iasphelp Interface"),
  59. pointer_default(unique)
  60. ]
  61. interface Iasphelp : IDispatch
  62. {
  63. //Standard Server Side Component Methods
  64. HRESULT OnStartPage([in] IUnknown* piUnk);
  65. HRESULT OnEndPage();
  66. [id(1), helpstring("method Open")] HRESULT Open(BSTR bstrPrinterName);
  67. [id(2), helpstring("method Close")] HRESULT Close();
  68. [propget, id(3), helpstring("property AspPage")] HRESULT AspPage(DWORD dwPage, [out, retval] BSTR *pVal);
  69. [propget, id(4), helpstring("property Community")] HRESULT Community([out, retval] BSTR *pVal);
  70. [propget, id(5), helpstring("property SNMPDevice")] HRESULT SNMPDevice([out, retval] DWORD *pVal);
  71. [propget, id(6), helpstring("property SNMPSupported")] HRESULT SNMPSupported([out, retval] BOOL *pVal);
  72. [propget, id(7), helpstring("property PageRateUnit")] HRESULT PageRateUnit([out, retval] long *pVal);
  73. [propget, id(9), helpstring("property IsHTTP")] HRESULT IsHTTP([out, retval] BOOL *pVal);
  74. [propget, id(10), helpstring("property IPAddress")] HRESULT IPAddress([out, retval] BSTR *pVal);
  75. [propget, id(11), helpstring("property IsTCPMonSupported")] HRESULT IsTCPMonSupported([out, retval] BOOL *pVal);
  76. [propget, id(12), helpstring("property Color")] HRESULT Color([out, retval] BOOL *pVal);
  77. [propget, id(13), helpstring("property Duplex")] HRESULT Duplex([out, retval] BOOL *pVal);
  78. [propget, id(14), helpstring("property MaximumResolution")] HRESULT MaximumResolution([out, retval] long *pVal);
  79. [propget, id(15), helpstring("property MediaReady")] HRESULT MediaReady([out, retval] VARIANT *pVal);
  80. [propget, id(16), helpstring("property PaperNames")] HRESULT PaperNames([out, retval] VARIANT *pVal);
  81. [propget, id(17), helpstring("property PageRate")] HRESULT PageRate([out, retval] long *pVal);
  82. [propget, id(18), helpstring("property ComputerName")] HRESULT ComputerName([out, retval] BSTR *pVal);
  83. [propget, id(19), helpstring("property LongPaperName")] HRESULT LongPaperName(BSTR bstrShortName, [out, retval] BSTR *pVal);
  84. [propget, id(21), helpstring("property Portname")] HRESULT PortName([out, retval] BSTR *pVal);
  85. [propget, id(22), helpstring("property MibErrorDscp")] HRESULT MibErrorDscp(DWORD dwError, [out, retval] BSTR *pVal);
  86. [id(23), helpstring("method CalcJobETA")] HRESULT CalcJobETA();
  87. [propget, id(24), helpstring("property PendingJobCount")] HRESULT PendingJobCount([out, retval] long *pVal);
  88. [propget, id(25), helpstring("property JobCompletionMinute")] HRESULT JobCompletionMinute([out, retval] long *pVal);
  89. [propget, id(26), helpstring("property AvgJobSizeUnit")] HRESULT AvgJobSizeUnit([out, retval] long *pVal);
  90. [propget, id(27), helpstring("property AvgJobSize")] HRESULT AvgJobSize([out, retval] long *pVal);
  91. [propget, id(28), helpstring("property Status")] HRESULT Status([out, retval] long *pVal);
  92. [propget, id(31), helpstring("property ErrorDscp")] HRESULT ErrorDscp(long lErrCode, [out, retval] BSTR *pVal);
  93. [propget, id(32), helpstring("property Model")] HRESULT DriverName([out, retval] BSTR *pVal);
  94. [propget, id(33), helpstring("property ShareName")] HRESULT ShareName([out, retval] BSTR *pVal);
  95. [propget, id(34), helpstring("property IsCluster")] HRESULT IsCluster([out, retval] BOOL *pVal);
  96. };
  97. [
  98. object,
  99. uuid(B57467A5-50B5-11D1-BF97-0000F8773501),
  100. dual,
  101. helpstring("IAddPrint Interface"),
  102. pointer_default(unique)
  103. ]
  104. interface IAddPrint : IDispatch
  105. {
  106. [id(1), helpstring("method AddPrinterConnection")] HRESULT AddPrinterConnection(BSTR lpPrinterName);
  107. [id(2), helpstring("method DeletePrinterConnection")] HRESULT DeletePrinterConnection(BSTR lpPrinterName);
  108. };
  109. [
  110. object,
  111. uuid(435899C8-44AB-11D1-AF00-080036234103),
  112. dual,
  113. helpstring("IDSPrintQueue Interface"),
  114. pointer_default(unique)
  115. ]
  116. interface IDSPrintQueue : IDispatch
  117. {
  118. [propget, id(1), helpstring("property UNCName")] HRESULT UNCName([out, retval] BSTR *pVal);
  119. [propput, id(1), helpstring("property UNCName")] HRESULT UNCName([in] BSTR newVal);
  120. [propget, id(2), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal);
  121. [propput, id(2), helpstring("property Name")] HRESULT Name([in] BSTR newVal);
  122. [propget, id(3), helpstring("property Container")] HRESULT Container([out, retval] BSTR *pVal);
  123. [propput, id(3), helpstring("property Container")] HRESULT Container([in] BSTR newVal);
  124. [id(4), helpstring("method Publish")] HRESULT Publish(DWORD dwAction);
  125. [propget, id(5), helpstring("property Path")] HRESULT Path([out, retval] BSTR *pVal);
  126. };
  127. [
  128. object,
  129. uuid(65303442-AD66-11D1-9D65-00C04FC30DF6),
  130. dual,
  131. helpstring("IOleCvt Interface"),
  132. pointer_default(unique)
  133. ]
  134. interface IOleCvt : IDispatch
  135. {
  136. //Standard Server Side Component Methods
  137. HRESULT OnStartPage([in] IUnknown* piUnk);
  138. HRESULT OnEndPage();
  139. [propget, id(1), helpstring("property ToUtf8")] HRESULT ToUtf8(BSTR bstrUnicode, [out, retval] BSTR *pVal);
  140. [propget, id(2), helpstring("property EncodeUnicodeName")] HRESULT EncodeUnicodeName(BSTR bstrSrcName, [out, retval] BSTR *pVal);
  141. [propget, id(3), helpstring("property DecodeUnicodeName")] HRESULT DecodeUnicodeName(BSTR bstrSrcName, [out, retval] BSTR *pVal);
  142. [propget, id(4), helpstring("property ToUnicode")] HRESULT ToUnicode(BSTR bstrString, long lCodePage, [out, retval] BSTR *pVal);
  143. };
  144. #endif
  145. [
  146. object,
  147. uuid(C3701883-B39B-11D1-9D68-00C04FC30DF6),
  148. dual,
  149. helpstring("IOleInstall Interface"),
  150. pointer_default(unique)
  151. ]
  152. interface IOleInstall : IDispatch
  153. {
  154. [id(2), helpstring("method InstallPrinter")] HRESULT InstallPrinter(BSTR pbstrUncName, BSTR pbstrUrl);
  155. [id(5), helpstring("method OpenPrintersFolder")] HRESULT OpenPrintersFolder();
  156. };
  157. [
  158. uuid(7586B340-EC08-11D0-A466-00C04FC30DF6),
  159. version(1.0),
  160. helpstring("oleprn 1.0 Type Library")
  161. ]
  162. library OLEPRNLib
  163. {
  164. importlib("stdole32.tlb");
  165. importlib("stdole2.tlb");
  166. [
  167. uuid(92337A8C-E11D-11D0-BE48-00C04FC30DF6),
  168. helpstring("prturl Class")
  169. ]
  170. coclass prturl
  171. {
  172. [default] interface Iprturl;
  173. };
  174. #ifndef WIN9X
  175. [
  176. uuid(4F664F91-FF01-11D0-8AED-00C04FD7B597),
  177. helpstring("SNMP Class")
  178. ]
  179. coclass SNMP
  180. {
  181. [default] interface ISNMP;
  182. };
  183. [
  184. uuid(3E4D4F1C-2AEE-11D1-9D3D-00C04FC30DF6),
  185. helpstring("asphelp Class")
  186. ]
  187. coclass asphelp
  188. {
  189. [default] interface Iasphelp;
  190. };
  191. [
  192. uuid(B57467A6-50B5-11D1-BF97-0000F8773501),
  193. helpstring("AddPrint Class")
  194. ]
  195. coclass AddPrint
  196. {
  197. [default] interface IAddPrint;
  198. };
  199. [
  200. uuid(435899C9-44AB-11D1-AF00-080036234103),
  201. helpstring("DSPrintQueue Class")
  202. ]
  203. coclass DSPrintQueue
  204. {
  205. [default] interface IDSPrintQueue;
  206. };
  207. [
  208. uuid(65303443-AD66-11D1-9D65-00C04FC30DF6),
  209. helpstring("OleCvt Class")
  210. ]
  211. coclass OleCvt
  212. {
  213. [default] interface IOleCvt;
  214. };
  215. #endif
  216. [
  217. uuid(C3701885-B39B-11D1-9D68-00C04FC30DF6),
  218. helpstring("Event interface for OleInstall")
  219. ]
  220. dispinterface _InstallEvent
  221. {
  222. properties:
  223. methods:
  224. [id(1)] void OnProgress ([in]long lProgress);
  225. [id(2)] void InstallError ([in]long lErrCode);
  226. };
  227. [
  228. uuid(C3701884-B39B-11D1-9D68-00C04FC30DF6),
  229. helpstring("OleInstall Class")
  230. ]
  231. coclass OleInstall
  232. {
  233. [default] interface IOleInstall;
  234. [default, source] dispinterface _InstallEvent;
  235. };
  236. };