mediaplayerdvd.cpp
上传用户:connie527
上传日期:2022-04-15
资源大小:4326k
文件大小:10k
源码类别:

行业应用

开发平台:

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 "mediaplayerdvd.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMediaPlayerDvd properties
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMediaPlayerDvd operations
  10. void CMediaPlayerDvd::ButtonSelectAndActivate(unsigned long uiButton)
  11. {
  12. static BYTE parms[] =
  13. VTS_I4;
  14. InvokeHelper(0x5f6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  15.  uiButton);
  16. }
  17. void CMediaPlayerDvd::UpperButtonSelect()
  18. {
  19. InvokeHelper(0x5f1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  20. }
  21. void CMediaPlayerDvd::LowerButtonSelect()
  22. {
  23. InvokeHelper(0x5f2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  24. }
  25. void CMediaPlayerDvd::LeftButtonSelect()
  26. {
  27. InvokeHelper(0x5f3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  28. }
  29. void CMediaPlayerDvd::RightButtonSelect()
  30. {
  31. InvokeHelper(0x5f4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  32. }
  33. void CMediaPlayerDvd::ButtonActivate()
  34. {
  35. InvokeHelper(0x5f5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  36. }
  37. void CMediaPlayerDvd::ForwardScan(double dwSpeed)
  38. {
  39. static BYTE parms[] =
  40. VTS_R8;
  41. InvokeHelper(0x5ed, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  42.  dwSpeed);
  43. }
  44. void CMediaPlayerDvd::BackwardScan(double dwSpeed)
  45. {
  46. static BYTE parms[] =
  47. VTS_R8;
  48. InvokeHelper(0x5ee, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  49.  dwSpeed);
  50. }
  51. void CMediaPlayerDvd::PrevPGSearch()
  52. {
  53. InvokeHelper(0x5ea, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  54. }
  55. void CMediaPlayerDvd::TopPGSearch()
  56. {
  57. InvokeHelper(0x5eb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  58. }
  59. void CMediaPlayerDvd::NextPGSearch()
  60. {
  61. InvokeHelper(0x5ec, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  62. }
  63. void CMediaPlayerDvd::TitlePlay(unsigned long uiTitle)
  64. {
  65. static BYTE parms[] =
  66. VTS_I4;
  67. InvokeHelper(0x5e3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  68.  uiTitle);
  69. }
  70. void CMediaPlayerDvd::ChapterPlay(unsigned long uiTitle, unsigned long uiChapter)
  71. {
  72. static BYTE parms[] =
  73. VTS_I4 VTS_I4;
  74. InvokeHelper(0x5e4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  75.  uiTitle, uiChapter);
  76. }
  77. void CMediaPlayerDvd::ChapterSearch(unsigned long Chapter)
  78. {
  79. static BYTE parms[] =
  80. VTS_I4;
  81. InvokeHelper(0x5e9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  82.  Chapter);
  83. }
  84. void CMediaPlayerDvd::MenuCall(long MenuID)
  85. {
  86. static BYTE parms[] =
  87. VTS_I4;
  88. InvokeHelper(0x5ef, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  89.  MenuID);
  90. }
  91. void CMediaPlayerDvd::ResumeFromMenu()
  92. {
  93. InvokeHelper(0x5f0, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  94. }
  95. void CMediaPlayerDvd::TimePlay(unsigned long uiTitle, LPCTSTR bstrTime)
  96. {
  97. static BYTE parms[] =
  98. VTS_I4 VTS_BSTR;
  99. InvokeHelper(0x5e5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  100.  uiTitle, bstrTime);
  101. }
  102. void CMediaPlayerDvd::TimeSearch(LPCTSTR bstrTime)
  103. {
  104. static BYTE parms[] =
  105. VTS_BSTR;
  106. InvokeHelper(0x5e8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  107.  bstrTime);
  108. }
  109. void CMediaPlayerDvd::ChapterPlayAutoStop(unsigned long ulTitle, unsigned long ulChapter, unsigned long ulChaptersToPlay)
  110. {
  111. static BYTE parms[] =
  112. VTS_I4 VTS_I4 VTS_I4;
  113. InvokeHelper(0x605, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  114.  ulTitle, ulChapter, ulChaptersToPlay);
  115. }
  116. void CMediaPlayerDvd::StillOff()
  117. {
  118. InvokeHelper(0x5f7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  119. }
  120. void CMediaPlayerDvd::GoUp()
  121. {
  122. InvokeHelper(0x5e7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  123. }
  124. CString CMediaPlayerDvd::GetTotalTitleTime()
  125. {
  126. CString result;
  127. InvokeHelper(0x62e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  128. return result;
  129. }
  130. unsigned long CMediaPlayerDvd::GetNumberOfChapters(unsigned long ulTitle)
  131. {
  132. unsigned long result;
  133. static BYTE parms[] =
  134. VTS_I4;
  135. InvokeHelper(0x60e, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  136. ulTitle);
  137. return result;
  138. }
  139. CString CMediaPlayerDvd::GetAudioLanguage(unsigned long ulStream)
  140. {
  141. CString result;
  142. static BYTE parms[] =
  143. VTS_I4;
  144. InvokeHelper(0x60f, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  145. ulStream);
  146. return result;
  147. }
  148. CString CMediaPlayerDvd::GetSubpictureLanguage(unsigned long ulStream)
  149. {
  150. CString result;
  151. static BYTE parms[] =
  152. VTS_I4;
  153. InvokeHelper(0x613, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  154. ulStream);
  155. return result;
  156. }
  157. VARIANT CMediaPlayerDvd::GetAllGPRMs()
  158. {
  159. VARIANT result;
  160. InvokeHelper(0x618, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  161. return result;
  162. }
  163. VARIANT CMediaPlayerDvd::GetAllSPRMs()
  164. {
  165. VARIANT result;
  166. InvokeHelper(0x617, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  167. return result;
  168. }
  169. BOOL CMediaPlayerDvd::UOPValid(unsigned long ulUOP)
  170. {
  171. BOOL result;
  172. static BYTE parms[] =
  173. VTS_I4;
  174. InvokeHelper(0x62b, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  175. ulUOP);
  176. return result;
  177. }
  178. unsigned long CMediaPlayerDvd::GetButtonsAvailable()
  179. {
  180. unsigned long result;
  181. InvokeHelper(0x623, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  182. return result;
  183. }
  184. unsigned long CMediaPlayerDvd::GetCurrentButton()
  185. {
  186. unsigned long result;
  187. InvokeHelper(0x622, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  188. return result;
  189. }
  190. unsigned long CMediaPlayerDvd::GetAudioStreamsAvailable()
  191. {
  192. unsigned long result;
  193. InvokeHelper(0x607, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  194. return result;
  195. }
  196. unsigned long CMediaPlayerDvd::GetCurrentAudioStream()
  197. {
  198. unsigned long result;
  199. InvokeHelper(0x608, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  200. return result;
  201. }
  202. void CMediaPlayerDvd::SetCurrentAudioStream(unsigned long newValue)
  203. {
  204. static BYTE parms[] =
  205. VTS_I4;
  206. InvokeHelper(0x608, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  207.  newValue);
  208. }
  209. unsigned long CMediaPlayerDvd::GetCurrentSubpictureStream()
  210. {
  211. unsigned long result;
  212. InvokeHelper(0x609, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  213. return result;
  214. }
  215. void CMediaPlayerDvd::SetCurrentSubpictureStream(unsigned long newValue)
  216. {
  217. static BYTE parms[] =
  218. VTS_I4;
  219. InvokeHelper(0x609, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  220.  newValue);
  221. }
  222. unsigned long CMediaPlayerDvd::GetSubpictureStreamsAvailable()
  223. {
  224. unsigned long result;
  225. InvokeHelper(0x60a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  226. return result;
  227. }
  228. BOOL CMediaPlayerDvd::GetSubpictureOn()
  229. {
  230. BOOL result;
  231. InvokeHelper(0x60b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  232. return result;
  233. }
  234. void CMediaPlayerDvd::SetSubpictureOn(BOOL bNewValue)
  235. {
  236. static BYTE parms[] =
  237. VTS_BOOL;
  238. InvokeHelper(0x60b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  239.  bNewValue);
  240. }
  241. unsigned long CMediaPlayerDvd::GetAnglesAvailable()
  242. {
  243. unsigned long result;
  244. InvokeHelper(0x60d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  245. return result;
  246. }
  247. unsigned long CMediaPlayerDvd::GetCurrentAngle()
  248. {
  249. unsigned long result;
  250. InvokeHelper(0x60c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  251. return result;
  252. }
  253. void CMediaPlayerDvd::SetCurrentAngle(unsigned long newValue)
  254. {
  255. static BYTE parms[] =
  256. VTS_I4;
  257. InvokeHelper(0x60c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  258.  newValue);
  259. }
  260. unsigned long CMediaPlayerDvd::GetCurrentTitle()
  261. {
  262. unsigned long result;
  263. InvokeHelper(0x61f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  264. return result;
  265. }
  266. unsigned long CMediaPlayerDvd::GetCurrentChapter()
  267. {
  268. unsigned long result;
  269. InvokeHelper(0x620, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  270. return result;
  271. }
  272. CString CMediaPlayerDvd::GetCurrentTime()
  273. {
  274. CString result;
  275. InvokeHelper(0x621, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  276. return result;
  277. }
  278. void CMediaPlayerDvd::SetRoot(LPCTSTR lpszNewValue)
  279. {
  280. static BYTE parms[] =
  281. VTS_BSTR;
  282. InvokeHelper(0x602, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  283.  lpszNewValue);
  284. }
  285. CString CMediaPlayerDvd::GetRoot()
  286. {
  287. CString result;
  288. InvokeHelper(0x602, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  289. return result;
  290. }
  291. unsigned long CMediaPlayerDvd::GetFramesPerSecond()
  292. {
  293. unsigned long result;
  294. InvokeHelper(0x625, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  295. return result;
  296. }
  297. unsigned long CMediaPlayerDvd::GetCurrentDomain()
  298. {
  299. unsigned long result;
  300. InvokeHelper(0x626, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  301. return result;
  302. }
  303. unsigned long CMediaPlayerDvd::GetTitlesAvailable()
  304. {
  305. unsigned long result;
  306. InvokeHelper(0x627, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  307. return result;
  308. }
  309. unsigned long CMediaPlayerDvd::GetVolumesAvailable()
  310. {
  311. unsigned long result;
  312. InvokeHelper(0x628, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  313. return result;
  314. }
  315. unsigned long CMediaPlayerDvd::GetCurrentVolume()
  316. {
  317. unsigned long result;
  318. InvokeHelper(0x629, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  319. return result;
  320. }
  321. unsigned long CMediaPlayerDvd::GetCurrentDiscSide()
  322. {
  323. unsigned long result;
  324. InvokeHelper(0x62a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  325. return result;
  326. }
  327. BOOL CMediaPlayerDvd::GetCCActive()
  328. {
  329. BOOL result;
  330. InvokeHelper(0x62d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  331. return result;
  332. }
  333. void CMediaPlayerDvd::SetCCActive(BOOL bNewValue)
  334. {
  335. static BYTE parms[] =
  336. VTS_BOOL;
  337. InvokeHelper(0x62d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  338.  bNewValue);
  339. }
  340. unsigned long CMediaPlayerDvd::GetCurrentCCService()
  341. {
  342. unsigned long result;
  343. InvokeHelper(0x62c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  344. return result;
  345. }
  346. void CMediaPlayerDvd::SetCurrentCCService(unsigned long newValue)
  347. {
  348. static BYTE parms[] =
  349. VTS_I4;
  350. InvokeHelper(0x62c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  351.  newValue);
  352. }
  353. CString CMediaPlayerDvd::GetUniqueID()
  354. {
  355. CString result;
  356. InvokeHelper(0x630, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  357. return result;
  358. }
  359. unsigned long CMediaPlayerDvd::GetColorKey()
  360. {
  361. unsigned long result;
  362. InvokeHelper(0x631, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  363. return result;
  364. }
  365. void CMediaPlayerDvd::SetColorKey(unsigned long newValue)
  366. {
  367. static BYTE parms[] =
  368. VTS_I4;
  369. InvokeHelper(0x631, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  370.  newValue);
  371. }