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

多媒体编程

开发平台:

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 "wmpplayer4.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "wmpcontrols.h"
  8. #include "WMPSettings.h"
  9. #include "wmpmedia.h"
  10. #include "wmpmediacollection.h"
  11. #include "wmpplaylistcollection.h"
  12. #include "wmpnetwork.h"
  13. #include "wmpplaylist.h"
  14. #include "wmpcdromcollection.h"
  15. #include "wmpclosedcaption.h"
  16. #include "WMPError.h"
  17. #include "wmpdvd.h"
  18. #include "WMPPlayerApplication.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CWMPPlayer4
  21. IMPLEMENT_DYNCREATE(CWMPPlayer4, CWnd)
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CWMPPlayer4 properties
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CWMPPlayer4 operations
  26. void CWMPPlayer4::close()
  27. {
  28. InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  29. }
  30. CString CWMPPlayer4::GetUrl()
  31. {
  32. CString result;
  33. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  34. return result;
  35. }
  36. void CWMPPlayer4::SetUrl(LPCTSTR lpszNewValue)
  37. {
  38. static BYTE parms[] =
  39. VTS_BSTR;
  40. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  41.  lpszNewValue);
  42. }
  43. long CWMPPlayer4::GetOpenState()
  44. {
  45. long result;
  46. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  47. return result;
  48. }
  49. long CWMPPlayer4::GetPlayState()
  50. {
  51. long result;
  52. InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  53. return result;
  54. }
  55. CWMPControls CWMPPlayer4::GetControls()
  56. {
  57. LPDISPATCH pDispatch;
  58. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  59. return CWMPControls(pDispatch);
  60. }
  61. CWMPSettings CWMPPlayer4::GetSettings()
  62. {
  63. LPDISPATCH pDispatch;
  64. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  65. return CWMPSettings(pDispatch);
  66. }
  67. CWMPMedia CWMPPlayer4::GetCurrentMedia()
  68. {
  69. LPDISPATCH pDispatch;
  70. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  71. return CWMPMedia(pDispatch);
  72. }
  73. void CWMPPlayer4::SetCurrentMedia(LPDISPATCH newValue)
  74. {
  75. static BYTE parms[] =
  76. VTS_DISPATCH;
  77. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  78.  newValue);
  79. }
  80. CWMPMediaCollection CWMPPlayer4::GetMediaCollection()
  81. {
  82. LPDISPATCH pDispatch;
  83. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  84. return CWMPMediaCollection(pDispatch);
  85. }
  86. CWMPPlaylistCollection CWMPPlayer4::GetPlaylistCollection()
  87. {
  88. LPDISPATCH pDispatch;
  89. InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  90. return CWMPPlaylistCollection(pDispatch);
  91. }
  92. CString CWMPPlayer4::GetVersionInfo()
  93. {
  94. CString result;
  95. InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  96. return result;
  97. }
  98. void CWMPPlayer4::launchURL(LPCTSTR bstrURL)
  99. {
  100. static BYTE parms[] =
  101. VTS_BSTR;
  102. InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  103.  bstrURL);
  104. }
  105. CWMPNetwork CWMPPlayer4::GetNetwork()
  106. {
  107. LPDISPATCH pDispatch;
  108. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  109. return CWMPNetwork(pDispatch);
  110. }
  111. CWMPPlaylist CWMPPlayer4::GetCurrentPlaylist()
  112. {
  113. LPDISPATCH pDispatch;
  114. InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  115. return CWMPPlaylist(pDispatch);
  116. }
  117. void CWMPPlayer4::SetCurrentPlaylist(LPDISPATCH newValue)
  118. {
  119. static BYTE parms[] =
  120. VTS_DISPATCH;
  121. InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  122.  newValue);
  123. }
  124. CWMPCdromCollection CWMPPlayer4::GetCdromCollection()
  125. {
  126. LPDISPATCH pDispatch;
  127. InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  128. return CWMPCdromCollection(pDispatch);
  129. }
  130. CWMPClosedCaption CWMPPlayer4::GetClosedCaption()
  131. {
  132. LPDISPATCH pDispatch;
  133. InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  134. return CWMPClosedCaption(pDispatch);
  135. }
  136. BOOL CWMPPlayer4::GetIsOnline()
  137. {
  138. BOOL result;
  139. InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  140. return result;
  141. }
  142. CWMPError CWMPPlayer4::GetError()
  143. {
  144. LPDISPATCH pDispatch;
  145. InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  146. return CWMPError(pDispatch);
  147. }
  148. CString CWMPPlayer4::GetStatus()
  149. {
  150. CString result;
  151. InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  152. return result;
  153. }
  154. CWMPDVD CWMPPlayer4::GetDvd()
  155. {
  156. LPDISPATCH pDispatch;
  157. InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  158. return CWMPDVD(pDispatch);
  159. }
  160. CWMPPlaylist CWMPPlayer4::newPlaylist(LPCTSTR bstrName, LPCTSTR bstrURL)
  161. {
  162. LPDISPATCH pDispatch;
  163. static BYTE parms[] =
  164. VTS_BSTR VTS_BSTR;
  165. InvokeHelper(0x29, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  166. bstrName, bstrURL);
  167. return CWMPPlaylist(pDispatch);
  168. }
  169. CWMPMedia CWMPPlayer4::newMedia(LPCTSTR bstrURL)
  170. {
  171. LPDISPATCH pDispatch;
  172. static BYTE parms[] =
  173. VTS_BSTR;
  174. InvokeHelper(0x2a, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  175. bstrURL);
  176. return CWMPMedia(pDispatch);
  177. }
  178. BOOL CWMPPlayer4::GetEnabled()
  179. {
  180. BOOL result;
  181. InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  182. return result;
  183. }
  184. void CWMPPlayer4::SetEnabled(BOOL bNewValue)
  185. {
  186. static BYTE parms[] =
  187. VTS_BOOL;
  188. InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  189.  bNewValue);
  190. }
  191. BOOL CWMPPlayer4::GetFullScreen()
  192. {
  193. BOOL result;
  194. InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  195. return result;
  196. }
  197. void CWMPPlayer4::SetFullScreen(BOOL bNewValue)
  198. {
  199. static BYTE parms[] =
  200. VTS_BOOL;
  201. InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  202.  bNewValue);
  203. }
  204. BOOL CWMPPlayer4::GetEnableContextMenu()
  205. {
  206. BOOL result;
  207. InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  208. return result;
  209. }
  210. void CWMPPlayer4::SetEnableContextMenu(BOOL bNewValue)
  211. {
  212. static BYTE parms[] =
  213. VTS_BOOL;
  214. InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  215.  bNewValue);
  216. }
  217. void CWMPPlayer4::SetUiMode(LPCTSTR lpszNewValue)
  218. {
  219. static BYTE parms[] =
  220. VTS_BSTR;
  221. InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  222.  lpszNewValue);
  223. }
  224. CString CWMPPlayer4::GetUiMode()
  225. {
  226. CString result;
  227. InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  228. return result;
  229. }
  230. BOOL CWMPPlayer4::GetStretchToFit()
  231. {
  232. BOOL result;
  233. InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  234. return result;
  235. }
  236. void CWMPPlayer4::SetStretchToFit(BOOL bNewValue)
  237. {
  238. static BYTE parms[] =
  239. VTS_BOOL;
  240. InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  241.  bNewValue);
  242. }
  243. BOOL CWMPPlayer4::GetWindowlessVideo()
  244. {
  245. BOOL result;
  246. InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  247. return result;
  248. }
  249. void CWMPPlayer4::SetWindowlessVideo(BOOL bNewValue)
  250. {
  251. static BYTE parms[] =
  252. VTS_BOOL;
  253. InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  254.  bNewValue);
  255. }
  256. BOOL CWMPPlayer4::GetIsRemote()
  257. {
  258. BOOL result;
  259. InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  260. return result;
  261. }
  262. CWMPPlayerApplication CWMPPlayer4::GetPlayerApplication()
  263. {
  264. LPDISPATCH pDispatch;
  265. InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  266. return CWMPPlayerApplication(pDispatch);
  267. }
  268. void CWMPPlayer4::openPlayer(LPCTSTR bstrURL)
  269. {
  270. static BYTE parms[] =
  271. VTS_BSTR;
  272. InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  273.  bstrURL);
  274. }