home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / ba / usevideo / videomfc / bpcbase.cpp next >
C/C++ Source or Header  |  1997-08-29  |  11KB  |  488 lines

  1. //
  2. // bpcbase.cpp: Implements the CBPCDeviceBase class 
  3. //
  4. // Copyright (C) 1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Broadcast Architecture Programmer's Reference.
  9. // For detailed information regarding Broadcast
  10. // Architecture, see the reference.
  11. //
  12. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  13.  
  14. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  15. //  Microsoft Visual C++, your modifications will be overwritten.
  16.  
  17.  
  18. #include "stdafx.h"
  19. #include "bpcbase.h"
  20.  
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CBPCDeviceBase properties
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CBPCDeviceBase operations
  27.  
  28. CString CBPCDeviceBase::GetName()
  29. {
  30.     CString result;
  31.     InvokeHelper(0x3e9, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  32.     return result;
  33. }
  34.  
  35. BOOL CBPCDeviceBase::GetHasFilename()
  36. {
  37.     BOOL result;
  38.     InvokeHelper(0x3ed, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  39.     return result;
  40. }
  41.  
  42. BOOL CBPCDeviceBase::GetHasCA()
  43. {
  44.     BOOL result;
  45.     InvokeHelper(0x410, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  46.     return result;
  47. }
  48.  
  49. BOOL CBPCDeviceBase::GetIsInput()
  50. {
  51.     BOOL result;
  52.     InvokeHelper(0x3ea, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  53.     return result;
  54. }
  55.  
  56. BOOL CBPCDeviceBase::GetIsOutput()
  57. {
  58.     BOOL result;
  59.     InvokeHelper(0x3eb, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  60.     return result;
  61. }
  62.  
  63. BOOL CBPCDeviceBase::GetHasChannel()
  64. {
  65.     BOOL result;
  66.     InvokeHelper(0x3ec, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  67.     return result;
  68. }
  69.  
  70. long CBPCDeviceBase::GetStatus()
  71. {
  72.     long result;
  73.     InvokeHelper(0x3ef, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  74.     return result;
  75. }
  76.  
  77. CString CBPCDeviceBase::GetProdName()
  78. {
  79.     CString result;
  80.     InvokeHelper(0x3f0, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  81.     return result;
  82. }
  83.  
  84. CString CBPCDeviceBase::GetFileName()
  85. {
  86.     CString result;
  87.     InvokeHelper(0x3f1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  88.     return result;
  89. }
  90.  
  91. void CBPCDeviceBase::SetFileName(LPCTSTR lpszNewValue)
  92. {
  93.     static BYTE parms[] =
  94.         VTS_BSTR;
  95.     InvokeHelper(0x3f1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  96.          lpszNewValue);
  97. }
  98.  
  99. long CBPCDeviceBase::GetChannel()
  100. {
  101.     long result;
  102.     InvokeHelper(0x3f2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  103.     return result;
  104. }
  105.  
  106. void CBPCDeviceBase::SetChannel(long nNewValue)
  107. {
  108.     static BYTE parms[] =
  109.         VTS_I4;
  110.     InvokeHelper(0x3f2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  111.          nNewValue);
  112. }
  113.  
  114. BOOL CBPCDeviceBase::GetChannelAvailable(long nChannel)
  115. {
  116.     BOOL result;
  117.     static BYTE parms[] =
  118.         VTS_I4;
  119.     InvokeHelper(0x3f5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
  120.         nChannel);
  121.     return result;
  122. }
  123.  
  124. long CBPCDeviceBase::GetImageSourceWidth()
  125. {
  126.     long result;
  127.     InvokeHelper(0x3f7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  128.     return result;
  129. }
  130.  
  131. long CBPCDeviceBase::GetImageSourceHeight()
  132. {
  133.     long result;
  134.     InvokeHelper(0x3f8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  135.     return result;
  136. }
  137.  
  138. long CBPCDeviceBase::GetCurrentState()
  139. {
  140.     long result;
  141.     InvokeHelper(0x412, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  142.     return result;
  143. }
  144.  
  145. double CBPCDeviceBase::GetCurrentPosition()
  146. {
  147.     double result;
  148.     InvokeHelper(0x3f9, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  149.     return result;
  150. }
  151.  
  152. void CBPCDeviceBase::SetCurrentPosition(double newValue)
  153. {
  154.     static BYTE parms[] =
  155.         VTS_R8;
  156.     InvokeHelper(0x3f9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  157.          newValue);
  158. }
  159.  
  160. double CBPCDeviceBase::GetDuration()
  161. {
  162.     double result;
  163.     InvokeHelper(0x3fa, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  164.     return result;
  165. }
  166.  
  167. double CBPCDeviceBase::GetPrerollTime()
  168. {
  169.     double result;
  170.     InvokeHelper(0x3fb, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  171.     return result;
  172. }
  173.  
  174. void CBPCDeviceBase::SetPrerollTime(double newValue)
  175. {
  176.     static BYTE parms[] =
  177.         VTS_R8;
  178.     InvokeHelper(0x3fb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  179.          newValue);
  180. }
  181.  
  182. double CBPCDeviceBase::GetRate()
  183. {
  184.     double result;
  185.     InvokeHelper(0x3fc, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  186.     return result;
  187. }
  188.  
  189. void CBPCDeviceBase::SetRate(double newValue)
  190. {
  191.     static BYTE parms[] =
  192.         VTS_R8;
  193.     InvokeHelper(0x3fc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  194.          newValue);
  195. }
  196.  
  197. long CBPCDeviceBase::GetCountryCode()
  198. {
  199.     long result;
  200.     InvokeHelper(0x3fd, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  201.     return result;
  202. }
  203.  
  204. void CBPCDeviceBase::SetCountryCode(long nNewValue)
  205. {
  206.     static BYTE parms[] =
  207.         VTS_I4;
  208.     InvokeHelper(0x3fd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  209.          nNewValue);
  210. }
  211.  
  212. long CBPCDeviceBase::GetVideoFrequency()
  213. {
  214.     long result;
  215.     InvokeHelper(0x3fe, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  216.     return result;
  217. }
  218.  
  219. long CBPCDeviceBase::GetAudioFrequency()
  220. {
  221.     long result;
  222.     InvokeHelper(0x3ff, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  223.     return result;
  224. }
  225.  
  226. long CBPCDeviceBase::GetDefaultVideoType()
  227. {
  228.     long result;
  229.     InvokeHelper(0x400, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  230.     return result;
  231. }
  232.  
  233. void CBPCDeviceBase::SetDefaultVideoType(long nNewValue)
  234. {
  235.     static BYTE parms[] =
  236.         VTS_I4;
  237.     InvokeHelper(0x400, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  238.          nNewValue);
  239. }
  240.  
  241. long CBPCDeviceBase::GetDefaultAudioType()
  242. {
  243.     long result;
  244.     InvokeHelper(0x401, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  245.     return result;
  246. }
  247.  
  248. void CBPCDeviceBase::SetDefaultAudioType(long nNewValue)
  249. {
  250.     static BYTE parms[] =
  251.         VTS_I4;
  252.     InvokeHelper(0x401, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  253.          nNewValue);
  254. }
  255.  
  256. long CBPCDeviceBase::GetVideoSubchannel()
  257. {
  258.     long result;
  259.     InvokeHelper(0x402, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  260.     return result;
  261. }
  262.  
  263. void CBPCDeviceBase::SetVideoSubchannel(long nNewValue)
  264. {
  265.     static BYTE parms[] =
  266.         VTS_I4;
  267.     InvokeHelper(0x402, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  268.          nNewValue);
  269. }
  270.  
  271. long CBPCDeviceBase::GetAudioSubchannel()
  272. {
  273.     long result;
  274.     InvokeHelper(0x403, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  275.     return result;
  276. }
  277.  
  278. void CBPCDeviceBase::SetAudioSubchannel(long nNewValue)
  279. {
  280.     static BYTE parms[] =
  281.         VTS_I4;
  282.     InvokeHelper(0x403, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  283.          nNewValue);
  284. }
  285.  
  286. void CBPCDeviceBase::SetVolume(long nNewValue)
  287. {
  288.     static BYTE parms[] =
  289.         VTS_I4;
  290.     InvokeHelper(0x407, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  291.          nNewValue);
  292. }
  293.  
  294. long CBPCDeviceBase::GetVolume()
  295. {
  296.     long result;
  297.     InvokeHelper(0x407, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  298.     return result;
  299. }
  300.  
  301. void CBPCDeviceBase::SetBalance(long nNewValue)
  302. {
  303.     static BYTE parms[] =
  304.         VTS_I4;
  305.     InvokeHelper(0x408, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  306.          nNewValue);
  307. }
  308.  
  309. long CBPCDeviceBase::GetBalance()
  310. {
  311.     long result;
  312.     InvokeHelper(0x408, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  313.     return result;
  314. }
  315.  
  316. void CBPCDeviceBase::SetPower(BOOL bNewValue)
  317. {
  318.     static BYTE parms[] =
  319.         VTS_BOOL;
  320.     InvokeHelper(0x40b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  321.          bNewValue);
  322. }
  323.  
  324. BOOL CBPCDeviceBase::GetPower()
  325. {
  326.     BOOL result;
  327.     InvokeHelper(0x40b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  328.     return result;
  329. }
  330.  
  331. void CBPCDeviceBase::SetOverScan(long nNewValue)
  332. {
  333.     static BYTE parms[] =
  334.         VTS_I4;
  335.     InvokeHelper(0x413, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  336.          nNewValue);
  337. }
  338.  
  339. long CBPCDeviceBase::GetOverScan()
  340. {
  341.     long result;
  342.     InvokeHelper(0x413, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  343.     return result;
  344. }
  345.  
  346. long CBPCDeviceBase::GetProviderRating()
  347. {
  348.     long result;
  349.     InvokeHelper(0x51d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  350.     return result;
  351. }
  352.  
  353. BOOL CBPCDeviceBase::GetProviderStatus()
  354. {
  355.     BOOL result;
  356.     InvokeHelper(0x51e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  357.     return result;
  358. }
  359.  
  360. long CBPCDeviceBase::GetProviderEPGMask()
  361. {
  362.     long result;
  363.     InvokeHelper(0x519, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  364.     return result;
  365. }
  366.  
  367. LPDISPATCH CBPCDeviceBase::GetHistoryItems()
  368. {
  369.     LPDISPATCH result;
  370.     InvokeHelper(0x520, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  371.     return result;
  372. }
  373.  
  374. LPDISPATCH CBPCDeviceBase::GetEmailMessages()
  375. {
  376.     LPDISPATCH result;
  377.     InvokeHelper(0x521, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  378.     return result;
  379. }
  380.  
  381. CString CBPCDeviceBase::GetUserName_()
  382. {
  383.     CString result;
  384.     InvokeHelper(0x51b, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  385.     return result;
  386. }
  387.  
  388. void CBPCDeviceBase::SetUserName(LPCTSTR lpszNewValue)
  389. {
  390.     static BYTE parms[] =
  391.         VTS_BSTR;
  392.     InvokeHelper(0x51b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  393.          lpszNewValue);
  394. }
  395.  
  396. CString CBPCDeviceBase::GetUserArea()
  397. {
  398.     CString result;
  399.     InvokeHelper(0x51c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  400.     return result;
  401. }
  402.  
  403. void CBPCDeviceBase::SetUserArea(LPCTSTR lpszNewValue)
  404. {
  405.     static BYTE parms[] =
  406.         VTS_BSTR;
  407.     InvokeHelper(0x51c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  408.          lpszNewValue);
  409. }
  410.  
  411. LPDISPATCH CBPCDeviceBase::GetItemDetails(long Priority, LPDISPATCH pInDetails)
  412. {
  413.     LPDISPATCH result;
  414.     static BYTE parms[] =
  415.         VTS_I4 VTS_DISPATCH;
  416.     InvokeHelper(0x518, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  417.         Priority, pInDetails);
  418.     return result;
  419. }
  420.  
  421. long CBPCDeviceBase::Command(long nCommand)
  422. {
  423.     long result;
  424.     static BYTE parms[] =
  425.         VTS_I4;
  426.     InvokeHelper(0x3f4, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  427.         nCommand);
  428.     return result;
  429. }
  430.  
  431. void CBPCDeviceBase::Run()
  432. {
  433.     InvokeHelper(0x40c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  434. }
  435.  
  436. void CBPCDeviceBase::Pause()
  437. {
  438.     InvokeHelper(0x40e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  439. }
  440.  
  441. void CBPCDeviceBase::Stop()
  442. {
  443.     InvokeHelper(0x40d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  444. }
  445.  
  446. void CBPCDeviceBase::Refresh()
  447. {
  448.     InvokeHelper(0x40f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  449. }
  450.  
  451. void CBPCDeviceBase::ResetProviderSystem()
  452. {
  453.     InvokeHelper(0x515, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  454. }
  455.  
  456. LPDISPATCH CBPCDeviceBase::BuyItem(long Priority, LPDISPATCH pInDetails)
  457. {
  458.     LPDISPATCH result;
  459.     static BYTE parms[] =
  460.         VTS_I4 VTS_DISPATCH;
  461.     InvokeHelper(0x516, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  462.         Priority, pInDetails);
  463.     return result;
  464. }
  465.  
  466. LPDISPATCH CBPCDeviceBase::CancelItem(LPDISPATCH pInDetails)
  467. {
  468.     LPDISPATCH result;
  469.     static BYTE parms[] =
  470.         VTS_DISPATCH;
  471.     InvokeHelper(0x517, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  472.         pInDetails);
  473.     return result;
  474. }
  475.  
  476. void CBPCDeviceBase::DisplayConfigDialog()
  477. {
  478.     InvokeHelper(0x51a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  479. }
  480.  
  481. void CBPCDeviceBase::HandleCardChaining(BOOL fOK)
  482. {
  483.     static BYTE parms[] =
  484.         VTS_BOOL;
  485.     InvokeHelper(0x523, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  486.          fOK);
  487. }
  488.