wmpnetwork.cpp
上传用户:zbtianhong
上传日期:2022-07-12
资源大小:3707k
文件大小:5k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  3. //  Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "wmpnetwork.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CWMPNetwork properties
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWMPNetwork operations
  10. long CWMPNetwork::GetBandWidth()
  11. {
  12. long result;
  13. InvokeHelper(0x321, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  14. return result;
  15. }
  16. long CWMPNetwork::GetRecoveredPackets()
  17. {
  18. long result;
  19. InvokeHelper(0x322, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  20. return result;
  21. }
  22. CString CWMPNetwork::GetSourceProtocol()
  23. {
  24. CString result;
  25. InvokeHelper(0x323, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  26. return result;
  27. }
  28. long CWMPNetwork::GetReceivedPackets()
  29. {
  30. long result;
  31. InvokeHelper(0x324, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  32. return result;
  33. }
  34. long CWMPNetwork::GetLostPackets()
  35. {
  36. long result;
  37. InvokeHelper(0x325, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  38. return result;
  39. }
  40. long CWMPNetwork::GetReceptionQuality()
  41. {
  42. long result;
  43. InvokeHelper(0x326, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  44. return result;
  45. }
  46. long CWMPNetwork::GetBufferingCount()
  47. {
  48. long result;
  49. InvokeHelper(0x327, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  50. return result;
  51. }
  52. long CWMPNetwork::GetBufferingProgress()
  53. {
  54. long result;
  55. InvokeHelper(0x328, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  56. return result;
  57. }
  58. long CWMPNetwork::GetBufferingTime()
  59. {
  60. long result;
  61. InvokeHelper(0x329, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  62. return result;
  63. }
  64. void CWMPNetwork::SetBufferingTime(long nNewValue)
  65. {
  66. static BYTE parms[] =
  67. VTS_I4;
  68. InvokeHelper(0x329, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  69.  nNewValue);
  70. }
  71. long CWMPNetwork::GetFrameRate()
  72. {
  73. long result;
  74. InvokeHelper(0x32a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  75. return result;
  76. }
  77. long CWMPNetwork::GetMaxBitRate()
  78. {
  79. long result;
  80. InvokeHelper(0x32b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  81. return result;
  82. }
  83. long CWMPNetwork::GetBitRate()
  84. {
  85. long result;
  86. InvokeHelper(0x32c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  87. return result;
  88. }
  89. long CWMPNetwork::getProxySettings(LPCTSTR bstrProtocol)
  90. {
  91. long result;
  92. static BYTE parms[] =
  93. VTS_BSTR;
  94. InvokeHelper(0x32d, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  95. bstrProtocol);
  96. return result;
  97. }
  98. void CWMPNetwork::setProxySettings(LPCTSTR bstrProtocol, long lProxySetting)
  99. {
  100. static BYTE parms[] =
  101. VTS_BSTR VTS_I4;
  102. InvokeHelper(0x32e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  103.  bstrProtocol, lProxySetting);
  104. }
  105. CString CWMPNetwork::getProxyName(LPCTSTR bstrProtocol)
  106. {
  107. CString result;
  108. static BYTE parms[] =
  109. VTS_BSTR;
  110. InvokeHelper(0x32f, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  111. bstrProtocol);
  112. return result;
  113. }
  114. void CWMPNetwork::setProxyName(LPCTSTR bstrProtocol, LPCTSTR bstrProxyName)
  115. {
  116. static BYTE parms[] =
  117. VTS_BSTR VTS_BSTR;
  118. InvokeHelper(0x330, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  119.  bstrProtocol, bstrProxyName);
  120. }
  121. long CWMPNetwork::getProxyPort(LPCTSTR bstrProtocol)
  122. {
  123. long result;
  124. static BYTE parms[] =
  125. VTS_BSTR;
  126. InvokeHelper(0x331, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  127. bstrProtocol);
  128. return result;
  129. }
  130. void CWMPNetwork::setProxyPort(LPCTSTR bstrProtocol, long lProxyPort)
  131. {
  132. static BYTE parms[] =
  133. VTS_BSTR VTS_I4;
  134. InvokeHelper(0x332, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  135.  bstrProtocol, lProxyPort);
  136. }
  137. CString CWMPNetwork::getProxyExceptionList(LPCTSTR bstrProtocol)
  138. {
  139. CString result;
  140. static BYTE parms[] =
  141. VTS_BSTR;
  142. InvokeHelper(0x333, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  143. bstrProtocol);
  144. return result;
  145. }
  146. void CWMPNetwork::setProxyExceptionList(LPCTSTR bstrProtocol, LPCTSTR pbstrExceptionList)
  147. {
  148. static BYTE parms[] =
  149. VTS_BSTR VTS_BSTR;
  150. InvokeHelper(0x334, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  151.  bstrProtocol, pbstrExceptionList);
  152. }
  153. BOOL CWMPNetwork::getProxyBypassForLocal(LPCTSTR bstrProtocol)
  154. {
  155. BOOL result;
  156. static BYTE parms[] =
  157. VTS_BSTR;
  158. InvokeHelper(0x335, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  159. bstrProtocol);
  160. return result;
  161. }
  162. void CWMPNetwork::setProxyBypassForLocal(LPCTSTR bstrProtocol, BOOL fBypassForLocal)
  163. {
  164. static BYTE parms[] =
  165. VTS_BSTR VTS_BOOL;
  166. InvokeHelper(0x336, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  167.  bstrProtocol, fBypassForLocal);
  168. }
  169. long CWMPNetwork::GetMaxBandwidth()
  170. {
  171. long result;
  172. InvokeHelper(0x337, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  173. return result;
  174. }
  175. void CWMPNetwork::SetMaxBandwidth(long nNewValue)
  176. {
  177. static BYTE parms[] =
  178. VTS_I4;
  179. InvokeHelper(0x337, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  180.  nNewValue);
  181. }
  182. long CWMPNetwork::GetDownloadProgress()
  183. {
  184. long result;
  185. InvokeHelper(0x338, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  186. return result;
  187. }
  188. long CWMPNetwork::GetEncodedFrameRate()
  189. {
  190. long result;
  191. InvokeHelper(0x339, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  192. return result;
  193. }
  194. long CWMPNetwork::GetFramesSkipped()
  195. {
  196. long result;
  197. InvokeHelper(0x33a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  198. return result;
  199. }