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.

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