SMPPCOM.idl
上传用户:hkcoast
上传日期:2007-01-12
资源大小:979k
文件大小:12k
源码类别:

手机短信编程

开发平台:

Visual C++

  1. // SMPPCOM.idl : IDL source for SMPPCOM
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (SMPPCOM.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(DF4BDE09-633A-4514-B72D-342271D61463),
  10. dual,
  11. nonextensible,
  12. helpstring("ISmppDateCom Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface ISmppDateCom : IDispatch{
  16. [id(1), helpstring("method isNull")] HRESULT isNull([out, retval] VARIANT_BOOL *valnull);
  17. [id(2), helpstring("method setNull")] HRESULT setNull(void);
  18. [id(3), helpstring("method toString")] HRESULT toString([out, retval] BSTR *strdate);
  19. [id(4), helpstring("method setDate")] HRESULT setDate([in] BSTR strdate);
  20. };
  21. [
  22. object,
  23. uuid(2CB72805-62F8-470F-B28E-85159572DF87),
  24. dual,
  25. nonextensible,
  26. helpstring("ISmppAddressCom Interface"),
  27. pointer_default(unique)
  28. ]
  29. interface ISmppAddressCom : IDispatch{
  30. [propget, id(1), helpstring("property TON")] HRESULT TON([out, retval] SHORT* pVal);
  31. [propput, id(1), helpstring("property TON")] HRESULT TON([in] SHORT newVal);
  32. [propget, id(2), helpstring("property NPI")] HRESULT NPI([out, retval] SHORT* pVal);
  33. [propput, id(2), helpstring("property NPI")] HRESULT NPI([in] SHORT newVal);
  34. [propget, id(3), helpstring("property Address")] HRESULT Address([out, retval] BSTR* pVal);
  35. [propput, id(3), helpstring("property Address")] HRESULT Address([in] BSTR newVal);
  36. };
  37. [
  38. object,
  39. uuid(C464074B-85CF-42B7-AB92-E7998FBAFA74),
  40. dual,
  41. nonextensible,
  42. helpstring("ISubmitSMCom Interface"),
  43. pointer_default(unique)
  44. ]
  45. interface ISubmitSMCom : IDispatch{
  46. [propget, id(1), helpstring("property ServiceType")] HRESULT ServiceType([out, retval] BSTR* pVal);
  47. [propput, id(1), helpstring("property ServiceType")] HRESULT ServiceType([in] BSTR newVal);
  48. [propget, id(2), helpstring("property Source")] HRESULT Source([out, retval] ISmppAddressCom** pVal);
  49. [propput, id(2), helpstring("property Source")] HRESULT Source([in] ISmppAddressCom* newVal);
  50. [propget, id(3), helpstring("property Destination")] HRESULT Destination([out, retval] ISmppAddressCom** pVal);
  51. [propput, id(3), helpstring("property Destination")] HRESULT Destination([in] ISmppAddressCom* newVal);
  52. [propget, id(4), helpstring("property esmClass")] HRESULT esmClass([out, retval] SHORT* pVal);
  53. [propput, id(4), helpstring("property esmClass")] HRESULT esmClass([in] SHORT newVal);
  54. [propget, id(5), helpstring("property dataCoding")] HRESULT dataCoding([out, retval] SHORT* pVal);
  55. [propput, id(5), helpstring("property dataCoding")] HRESULT dataCoding([in] SHORT newVal);
  56. [propget, id(6), helpstring("property protocolID")] HRESULT protocolID([out, retval] SHORT* pVal);
  57. [propput, id(6), helpstring("property protocolID")] HRESULT protocolID([in] SHORT newVal);
  58. [propget, id(7), helpstring("property priorityFlag")] HRESULT priorityFlag([out, retval] SHORT* pVal);
  59. [propput, id(7), helpstring("property priorityFlag")] HRESULT priorityFlag([in] SHORT newVal);
  60. [propget, id(8), helpstring("property scheduledDelivery")] HRESULT scheduledDelivery([out, retval] ISmppDateCom** pVal);
  61. [propput, id(8), helpstring("property scheduledDelivery")] HRESULT scheduledDelivery([in] ISmppDateCom* newVal);
  62. [propget, id(9), helpstring("property validityPeriod")] HRESULT validityPeriod([out, retval] ISmppDateCom** pVal);
  63. [propput, id(9), helpstring("property validityPeriod")] HRESULT validityPeriod([in] ISmppDateCom* newVal);
  64. [propget, id(10), helpstring("property registeredDelivery")] HRESULT registeredDelivery([out, retval] SHORT* pVal);
  65. [propput, id(10), helpstring("property registeredDelivery")] HRESULT registeredDelivery([in] SHORT newVal);
  66. [propget, id(11), helpstring("property replaceIfPresent")] HRESULT replaceIfPresent([out, retval] SHORT* pVal);
  67. [propput, id(11), helpstring("property replaceIfPresent")] HRESULT replaceIfPresent([in] SHORT newVal);
  68. [propget, id(12), helpstring("property smDefaultMsgId")] HRESULT smDefaultMsgId([out, retval] SHORT* pVal);
  69. [propput, id(12), helpstring("property smDefaultMsgId")] HRESULT smDefaultMsgId([in] SHORT newVal);
  70. [propget, id(13), helpstring("property Message")] HRESULT Message([out, retval] BSTR* pVal);
  71. [propput, id(13), helpstring("property Message")] HRESULT Message([in] BSTR newVal);
  72. [id(14), helpstring("method compactMessage")] HRESULT compactMessage(void);
  73. [id(15), helpstring("method flipByteOrder")] HRESULT flipByteOrder(void);
  74. [id(16), helpstring("method setMessage")] HRESULT setMessage([in] VARIANT msgdata);
  75. [id(17), helpstring("method getMessage")] HRESULT getMessage([out,retval] VARIANT* pmsgdata);
  76. };
  77. [
  78. object,
  79. uuid(3C9111B7-D010-48E6-9AA6-33599987481F),
  80. dual,
  81. nonextensible,
  82. helpstring("IEsmeTransmitterCom Interface"),
  83. pointer_default(unique)
  84. ]
  85. interface IEsmeTransmitterCom : IDispatch{
  86. [id(1), helpstring("method bind")] HRESULT bind([in] BSTR sysid, [in] BSTR passwd, [in] BSTR systype, [in] ISmppAddressCom* iaddr, [out, retval] VARIANT_BOOL* pret);
  87. [id(2), helpstring("method unbind")] HRESULT unbind([out, retval] VARIANT_BOOL *pret);
  88. [id(3), helpstring("method enquireLink")] HRESULT enquireLink([out, retval] VARIANT_BOOL* pret);
  89. [id(4), helpstring("method init")] HRESULT init([in] BSTR svrip, [in] LONG port);
  90. [id(5), helpstring("method close")] HRESULT close(void);
  91. [propget, id(6), helpstring("property Connected")] HRESULT Connected([out, retval] VARIANT_BOOL* pVal);
  92. [id(7), helpstring("method submitMessage")] HRESULT submitMessage([in] ISubmitSMCom* isubmit, [out] BSTR* pMsgid, [out, retval] VARIANT_BOOL* pret);
  93. };
  94. [
  95. object,
  96. uuid(2DB76F63-43CA-4610-BFD0-3CE885D6078B),
  97. dual,
  98. nonextensible,
  99. helpstring("IDeliverSMCom Interface"),
  100. pointer_default(unique)
  101. ]
  102. interface IDeliverSMCom : IDispatch{
  103. [propget, id(1), helpstring("property ServiceType")] HRESULT ServiceType([out, retval] BSTR* pVal);
  104. [propput, id(1), helpstring("property ServiceType")] HRESULT ServiceType([in] BSTR newVal);
  105. [propget, id(2), helpstring("property Source")] HRESULT Source([out, retval] ISmppAddressCom** pVal);
  106. [propput, id(2), helpstring("property Source")] HRESULT Source([in] ISmppAddressCom* newVal);
  107. [propget, id(3), helpstring("property Destination")] HRESULT Destination([out, retval] ISmppAddressCom** pVal);
  108. [propput, id(3), helpstring("property Destination")] HRESULT Destination([in] ISmppAddressCom* newVal);
  109. [propget, id(4), helpstring("property esmClass")] HRESULT esmClass([out, retval] SHORT* pVal);
  110. [propput, id(4), helpstring("property esmClass")] HRESULT esmClass([in] SHORT newVal);
  111. [propget, id(5), helpstring("property dataCoding")] HRESULT dataCoding([out, retval] SHORT* pVal);
  112. [propput, id(5), helpstring("property dataCoding")] HRESULT dataCoding([in] SHORT newVal);
  113. [propget, id(6), helpstring("property protocolID")] HRESULT protocolID([out, retval] SHORT* pVal);
  114. [propput, id(6), helpstring("property protocolID")] HRESULT protocolID([in] SHORT newVal);
  115. [propget, id(7), helpstring("property priorityFlag")] HRESULT priorityFlag([out, retval] SHORT* pVal);
  116. [propput, id(7), helpstring("property priorityFlag")] HRESULT priorityFlag([in] SHORT newVal);
  117. [propget, id(8), helpstring("property scheduledDelivery")] HRESULT scheduledDelivery([out, retval] ISmppDateCom** pVal);
  118. [propput, id(8), helpstring("property scheduledDelivery")] HRESULT scheduledDelivery([in] ISmppDateCom* newVal);
  119. [propget, id(9), helpstring("property validityPeriod")] HRESULT validityPeriod([out, retval] ISmppDateCom** pVal);
  120. [propput, id(9), helpstring("property validityPeriod")] HRESULT validityPeriod([in] ISmppDateCom* newVal);
  121. [propget, id(10), helpstring("property registeredDelivery")] HRESULT registeredDelivery([out, retval] SHORT* pVal);
  122. [propput, id(10), helpstring("property registeredDelivery")] HRESULT registeredDelivery([in] SHORT newVal);
  123. [propget, id(11), helpstring("property replaceIfPresent")] HRESULT replaceIfPresent([out, retval] SHORT* pVal);
  124. [propput, id(11), helpstring("property replaceIfPresent")] HRESULT replaceIfPresent([in] SHORT newVal);
  125. [propget, id(12), helpstring("property smDefaultMsgId")] HRESULT smDefaultMsgId([out, retval] SHORT* pVal);
  126. [propput, id(12), helpstring("property smDefaultMsgId")] HRESULT smDefaultMsgId([in] SHORT newVal);
  127. [propget, id(13), helpstring("property Message")] HRESULT Message([out, retval] BSTR* pVal);
  128. [propput, id(13), helpstring("property Message")] HRESULT Message([in] BSTR newVal);
  129. [id(14), helpstring("method compactMessage")] HRESULT compactMessage(void);
  130. [id(15), helpstring("method flipByteOrder")] HRESULT flipByteOrder(void);
  131. [id(16), helpstring("method setMessage")] HRESULT setMessage([in] VARIANT msgdata);
  132. [id(17), helpstring("method getMessage")] HRESULT getMessage([out,retval] VARIANT* pmsgdata);
  133. };
  134. [
  135. object,
  136. uuid(C258AF14-8CEF-404F-BE03-62B6C57F6026),
  137. dual,
  138. nonextensible,
  139. helpstring("IEsmeTransceiverCom Interface"),
  140. pointer_default(unique)
  141. ]
  142. interface IEsmeTransceiverCom : IDispatch{
  143. [id(1), helpstring("method bind")] HRESULT bind([in] BSTR sysid, [in] BSTR passwd, [in] BSTR systype, [in] ISmppAddressCom* iaddr, [out, retval] VARIANT_BOOL* pret);
  144. [id(2), helpstring("method unbind")] HRESULT unbind([out, retval] VARIANT_BOOL *pret);
  145. [id(3), helpstring("method enquireLink")] HRESULT enquireLink([out, retval] VARIANT_BOOL* pret);
  146. [id(4), helpstring("method init")] HRESULT init([in] BSTR svrip, [in] LONG port);
  147. [id(5), helpstring("method close")] HRESULT close(void);
  148. [propget, id(6), helpstring("property Connected")] HRESULT Connected([out, retval] VARIANT_BOOL* pVal);
  149. [id(7), helpstring("method submitMessage")] HRESULT submitMessage([in] ISubmitSMCom* isubmit, [out] BSTR* pMsgid, [out, retval] VARIANT_BOOL* pret);
  150. };
  151. [
  152. object,
  153. uuid(57E38123-98A1-4219-8CB6-EF45A5428238),
  154. dual,
  155. nonextensible,
  156. helpstring("IEsmeReceiverCom Interface"),
  157. pointer_default(unique)
  158. ]
  159. interface IEsmeReceiverCom : IDispatch{
  160. [id(1), helpstring("method bind")] HRESULT bind([in] BSTR sysid, [in] BSTR passwd, [in] BSTR systype, [in] ISmppAddressCom* iaddr, [out, retval] VARIANT_BOOL* pret);
  161. [id(2), helpstring("method unbind")] HRESULT unbind([out, retval] VARIANT_BOOL *pret);
  162. [id(3), helpstring("method enquireLink")] HRESULT enquireLink([out, retval] VARIANT_BOOL* pret);
  163. [id(4), helpstring("method init")] HRESULT init([in] BSTR svrip, [in] LONG port);
  164. [id(5), helpstring("method close")] HRESULT close(void);
  165. [propget, id(6), helpstring("property Connected")] HRESULT Connected([out, retval] VARIANT_BOOL* pVal);
  166. };
  167. [
  168. uuid(E86C7AA4-22B2-4D89-8C11-C1A1645CE030),
  169. version(1.0),
  170. helpstring("SMPPCOM 1.0 Type Library")
  171. ]
  172. library SMPPCOMLib
  173. {
  174. importlib("stdole2.tlb");
  175. [
  176. uuid(EC69E685-1C42-41A0-B941-1504F6AC17AD),
  177. helpstring("SubmitSMCom Class")
  178. ]
  179. coclass SubmitSMCom
  180. {
  181. [default] interface ISubmitSMCom;
  182. };
  183. [
  184. uuid(A79C8B2C-C8A8-4AB2-8942-E74BB8E7C202),
  185. helpstring("DeliverSMCom Class")
  186. ]
  187. coclass DeliverSMCom
  188. {
  189. [default] interface IDeliverSMCom;
  190. };
  191. [
  192. uuid(A4A12ED6-F39A-4801-B626-74A2BC332A56),
  193. helpstring("SmppDateCom Class")
  194. ]
  195. coclass SmppDateCom
  196. {
  197. [default] interface ISmppDateCom;
  198. };
  199. [
  200. uuid(8E5E31AA-DA91-4D7D-868B-945CB4CF6E02),
  201. helpstring("SmppAddressCom Class")
  202. ]
  203. coclass SmppAddressCom
  204. {
  205. [default] interface ISmppAddressCom;
  206. };
  207. [
  208. uuid(E8A13A9B-72A2-444E-AA3C-1C7ADBD4BE5E),
  209. helpstring("EsmeTransmitterCom Class")
  210. ]
  211. coclass EsmeTransmitterCom
  212. {
  213. [default] interface IEsmeTransmitterCom;
  214. };
  215. [
  216. uuid(FBD47734-D76D-4327-8AF2-3FD334ECC1A2),
  217. helpstring("_IEsmeTransceiverComEvents Interface")
  218. ]
  219. dispinterface _IEsmeTransceiverComEvents
  220. {
  221. properties:
  222. methods:
  223. [id(1), helpstring("method OnDeliverSM")] HRESULT OnDeliverSM([in] IDeliverSMCom* dsm);
  224. };
  225. [
  226. uuid(270CF62C-9385-4D01-900A-9C221199A3B0),
  227. helpstring("EsmeTransceiverCom Class")
  228. ]
  229. coclass EsmeTransceiverCom
  230. {
  231. [default] interface IEsmeTransceiverCom;
  232. [default, source] dispinterface _IEsmeTransceiverComEvents;
  233. };
  234. [
  235. uuid(0BD6067E-7EF9-4576-B583-DD603ADF8BCC),
  236. helpstring("_IEsmeReceiverComEvents Interface")
  237. ]
  238. dispinterface _IEsmeReceiverComEvents
  239. {
  240. properties:
  241. methods:
  242. [id(1), helpstring("method OnDeliverSM")] HRESULT OnDeliverSM([in] IDeliverSMCom* dsm);
  243. };
  244. [
  245. uuid(6CC2B796-F91D-452F-BB3D-1A921F8D5D35),
  246. helpstring("EsmeReceiverCom Class")
  247. ]
  248. coclass EsmeReceiverCom
  249. {
  250. [default] interface IEsmeReceiverCom;
  251. [default, source] dispinterface _IEsmeReceiverComEvents;
  252. };
  253. };