home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / leadcap.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-13  |  19.7 KB  |  873 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "leadcap.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "Picture.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CLeadCap
  15.  
  16. IMPLEMENT_DYNCREATE(CLeadCap, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CLeadCap properties
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CLeadCap operations
  23.  
  24. unsigned long CLeadCap::AddRef()
  25. {
  26.     unsigned long result;
  27.     InvokeHelper(0x60000001, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  28.     return result;
  29. }
  30.  
  31. unsigned long CLeadCap::Release()
  32. {
  33.     unsigned long result;
  34.     InvokeHelper(0x60000002, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  35.     return result;
  36. }
  37.  
  38. void CLeadCap::SetAppearance(long nNewValue)
  39. {
  40.     static BYTE parms[] =
  41.         VTS_I4;
  42.     InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  43.          nNewValue);
  44. }
  45.  
  46. long CLeadCap::GetAppearance()
  47. {
  48.     long result;
  49.     InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  50.     return result;
  51. }
  52.  
  53. void CLeadCap::SetMousePointer(long nNewValue)
  54. {
  55.     static BYTE parms[] =
  56.         VTS_I4;
  57.     InvokeHelper(0xfffffdf7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  58.          nNewValue);
  59. }
  60.  
  61. long CLeadCap::GetMousePointer()
  62. {
  63.     long result;
  64.     InvokeHelper(0xfffffdf7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  65.     return result;
  66. }
  67.  
  68. void CLeadCap::SetMouseIcon(LPDISPATCH newValue)
  69. {
  70.     static BYTE parms[] =
  71.         VTS_DISPATCH;
  72.     InvokeHelper(0xfffffdf6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  73.          newValue);
  74. }
  75.  
  76. CPicture CLeadCap::GetMouseIcon()
  77. {
  78.     LPDISPATCH pDispatch;
  79.     InvokeHelper(0xfffffdf6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  80.     return CPicture(pDispatch);
  81. }
  82.  
  83. short CLeadCap::GetCapPercentDrop()
  84. {
  85.     short result;
  86.     InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  87.     return result;
  88. }
  89.  
  90. void CLeadCap::SetCapPercentDrop(short nNewValue)
  91. {
  92.     static BYTE parms[] =
  93.         VTS_I2;
  94.     InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  95.          nNewValue);
  96. }
  97.  
  98. short CLeadCap::GetCapTimeLimit()
  99. {
  100.     short result;
  101.     InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  102.     return result;
  103. }
  104.  
  105. void CLeadCap::SetCapTimeLimit(short nNewValue)
  106. {
  107.     static BYTE parms[] =
  108.         VTS_I2;
  109.     InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  110.          nNewValue);
  111. }
  112.  
  113. float CLeadCap::GetCapFramesPerSec()
  114. {
  115.     float result;
  116.     InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  117.     return result;
  118. }
  119.  
  120. void CLeadCap::SetCapFramesPerSec(float newValue)
  121. {
  122.     static BYTE parms[] =
  123.         VTS_R4;
  124.     InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  125.          newValue);
  126. }
  127.  
  128. short CLeadCap::GetCapDisplayMode()
  129. {
  130.     short result;
  131.     InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  132.     return result;
  133. }
  134.  
  135. void CLeadCap::SetCapDisplayMode(short nNewValue)
  136. {
  137.     static BYTE parms[] =
  138.         VTS_I2;
  139.     InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  140.          nNewValue);
  141. }
  142.  
  143. float CLeadCap::GetCapPreviewRate()
  144. {
  145.     float result;
  146.     InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  147.     return result;
  148. }
  149.  
  150. void CLeadCap::SetCapPreviewRate(float newValue)
  151. {
  152.     static BYTE parms[] =
  153.         VTS_R4;
  154.     InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  155.          newValue);
  156. }
  157.  
  158. long CLeadCap::GetCapInfoNumFrames()
  159. {
  160.     long result;
  161.     InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  162.     return result;
  163. }
  164.  
  165. long CLeadCap::GetCapInfoWaveSamples()
  166. {
  167.     long result;
  168.     InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  169.     return result;
  170. }
  171.  
  172. long CLeadCap::GetCapInfoTimeElapsed()
  173. {
  174.     long result;
  175.     InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  176.     return result;
  177. }
  178.  
  179. long CLeadCap::GetCapInfoFramesDropped()
  180. {
  181.     long result;
  182.     InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  183.     return result;
  184. }
  185.  
  186. unsigned long CLeadCap::GetCapInfoHPalette(short iIndex)
  187. {
  188.     unsigned long result;
  189.     static BYTE parms[] =
  190.         VTS_I2;
  191.     InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  192.         iIndex);
  193.     return result;
  194. }
  195.  
  196. CString CLeadCap::GetCapWorkFile()
  197. {
  198.     CString result;
  199.     InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  200.     return result;
  201. }
  202.  
  203. void CLeadCap::SetCapWorkFile(LPCTSTR lpszNewValue)
  204. {
  205.     static BYTE parms[] =
  206.         VTS_BSTR;
  207.     InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  208.          lpszNewValue);
  209. }
  210.  
  211. long CLeadCap::GetCapCaptureAudio()
  212. {
  213.     long result;
  214.     InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  215.     return result;
  216. }
  217.  
  218. void CLeadCap::SetCapCaptureAudio(long nNewValue)
  219. {
  220.     static BYTE parms[] =
  221.         VTS_I4;
  222.     InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  223.          nNewValue);
  224. }
  225.  
  226. long CLeadCap::GetCapWorkFileSize()
  227. {
  228.     long result;
  229.     InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  230.     return result;
  231. }
  232.  
  233. void CLeadCap::SetCapWorkFileSize(long nNewValue)
  234. {
  235.     static BYTE parms[] =
  236.         VTS_I4;
  237.     InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  238.          nNewValue);
  239. }
  240.  
  241. short CLeadCap::GetCapVidFmtWidth()
  242. {
  243.     short result;
  244.     InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  245.     return result;
  246. }
  247.  
  248. void CLeadCap::SetCapVidFmtWidth(short nNewValue)
  249. {
  250.     static BYTE parms[] =
  251.         VTS_I2;
  252.     InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  253.          nNewValue);
  254. }
  255.  
  256. short CLeadCap::GetCapVidFmtHeight()
  257. {
  258.     short result;
  259.     InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  260.     return result;
  261. }
  262.  
  263. void CLeadCap::SetCapVidFmtHeight(short nNewValue)
  264. {
  265.     static BYTE parms[] =
  266.         VTS_I2;
  267.     InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  268.          nNewValue);
  269. }
  270.  
  271. long CLeadCap::GetEnableMethodErrors()
  272. {
  273.     long result;
  274.     InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  275.     return result;
  276. }
  277.  
  278. void CLeadCap::SetEnableMethodErrors(long nNewValue)
  279. {
  280.     static BYTE parms[] =
  281.         VTS_I4;
  282.     InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  283.          nNewValue);
  284. }
  285.  
  286. short CLeadCap::GetScaleMode()
  287. {
  288.     short result;
  289.     InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  290.     return result;
  291. }
  292.  
  293. void CLeadCap::SetScaleMode(short nNewValue)
  294. {
  295.     static BYTE parms[] =
  296.         VTS_I2;
  297.     InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  298.          nNewValue);
  299. }
  300.  
  301. float CLeadCap::GetScaleWidth()
  302. {
  303.     float result;
  304.     InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  305.     return result;
  306. }
  307.  
  308. float CLeadCap::GetScaleHeight()
  309. {
  310.     float result;
  311.     InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  312.     return result;
  313. }
  314.  
  315. short CLeadCap::CapConnect(short iDriver)
  316. {
  317.     short result;
  318.     static BYTE parms[] =
  319.         VTS_I2;
  320.     InvokeHelper(0x17, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  321.         iDriver);
  322.     return result;
  323. }
  324.  
  325. short CLeadCap::CapDisconnect()
  326. {
  327.     short result;
  328.     InvokeHelper(0x18, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  329.     return result;
  330. }
  331.  
  332. short CLeadCap::CapCopyWorkFileAs(LPCTSTR pszName)
  333. {
  334.     short result;
  335.     static BYTE parms[] =
  336.         VTS_BSTR;
  337.     InvokeHelper(0x19, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  338.         pszName);
  339.     return result;
  340. }
  341.  
  342. short CLeadCap::CapDisplayDialog(short iDialog, short iIndex, long lFlags)
  343. {
  344.     short result;
  345.     static BYTE parms[] =
  346.         VTS_I2 VTS_I2 VTS_I4;
  347.     InvokeHelper(0x1a, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  348.         iDialog, iIndex, lFlags);
  349.     return result;
  350. }
  351.  
  352. short CLeadCap::CapStartCapture()
  353. {
  354.     short result;
  355.     InvokeHelper(0x1b, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  356.     return result;
  357. }
  358.  
  359. short CLeadCap::CapStopCapture()
  360. {
  361.     short result;
  362.     InvokeHelper(0x1c, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  363.     return result;
  364. }
  365.  
  366. short CLeadCap::CapEnumDrivers()
  367. {
  368.     short result;
  369.     InvokeHelper(0x1d, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  370.     return result;
  371. }
  372.  
  373. short CLeadCap::CapSingleFrameStart()
  374. {
  375.     short result;
  376.     InvokeHelper(0x1e, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  377.     return result;
  378. }
  379.  
  380. short CLeadCap::CapSingleFrameGet()
  381. {
  382.     short result;
  383.     InvokeHelper(0x1f, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  384.     return result;
  385. }
  386.  
  387. short CLeadCap::CapSingleFrameStop()
  388. {
  389.     short result;
  390.     InvokeHelper(0x20, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  391.     return result;
  392. }
  393.  
  394. long CLeadCap::GetEnableCaptureStatus()
  395. {
  396.     long result;
  397.     InvokeHelper(0x21, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  398.     return result;
  399. }
  400.  
  401. void CLeadCap::SetEnableCaptureStatus(long nNewValue)
  402. {
  403.     static BYTE parms[] =
  404.         VTS_I4;
  405.     InvokeHelper(0x21, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  406.          nNewValue);
  407. }
  408.  
  409. long CLeadCap::GetAutoResizeControl()
  410. {
  411.     long result;
  412.     InvokeHelper(0x22, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  413.     return result;
  414. }
  415.  
  416. void CLeadCap::SetAutoResizeControl(long nNewValue)
  417. {
  418.     static BYTE parms[] =
  419.         VTS_I4;
  420.     InvokeHelper(0x22, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  421.          nNewValue);
  422. }
  423.  
  424. long CLeadCap::GetIsOptionAvailable(short iOption)
  425. {
  426.     long result;
  427.     static BYTE parms[] =
  428.         VTS_I2;
  429.     InvokeHelper(0x23, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  430.         iOption);
  431.     return result;
  432. }
  433.  
  434. long CLeadCap::GetEnableCaptureEvents()
  435. {
  436.     long result;
  437.     InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  438.     return result;
  439. }
  440.  
  441. void CLeadCap::SetEnableCaptureEvents(long nNewValue)
  442. {
  443.     static BYTE parms[] =
  444.         VTS_I4;
  445.     InvokeHelper(0x24, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  446.          nNewValue);
  447. }
  448.  
  449. short CLeadCap::GetVideoWidth()
  450. {
  451.     short result;
  452.     InvokeHelper(0x25, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  453.     return result;
  454. }
  455.  
  456. short CLeadCap::GetVideoHeight()
  457. {
  458.     short result;
  459.     InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  460.     return result;
  461. }
  462.  
  463. short CLeadCap::CapUpdateVidFormat()
  464. {
  465.     short result;
  466.     InvokeHelper(0x27, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  467.     return result;
  468. }
  469.  
  470. short CLeadCap::CapGetStatusInfo()
  471. {
  472.     short result;
  473.     InvokeHelper(0x28, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  474.     return result;
  475. }
  476.  
  477. long CLeadCap::GetCapAbortLeftMouse()
  478. {
  479.     long result;
  480.     InvokeHelper(0x29, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  481.     return result;
  482. }
  483.  
  484. void CLeadCap::SetCapAbortLeftMouse(long nNewValue)
  485. {
  486.     static BYTE parms[] =
  487.         VTS_I4;
  488.     InvokeHelper(0x29, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  489.          nNewValue);
  490. }
  491.  
  492. long CLeadCap::GetCapAbortRightMouse()
  493. {
  494.     long result;
  495.     InvokeHelper(0x2a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  496.     return result;
  497. }
  498.  
  499. void CLeadCap::SetCapAbortRightMouse(long nNewValue)
  500. {
  501.     static BYTE parms[] =
  502.         VTS_I4;
  503.     InvokeHelper(0x2a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  504.          nNewValue);
  505. }
  506.  
  507. short CLeadCap::GetCapAudioFormat(short iIndex)
  508. {
  509.     short result;
  510.     static BYTE parms[] =
  511.         VTS_I2;
  512.     InvokeHelper(0x2b, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  513.         iIndex);
  514.     return result;
  515. }
  516.  
  517. void CLeadCap::SetCapAudioFormat(short iIndex, short nNewValue)
  518. {
  519.     static BYTE parms[] =
  520.         VTS_I2 VTS_I2;
  521.     InvokeHelper(0x2b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  522.          iIndex, nNewValue);
  523. }
  524.  
  525. short CLeadCap::CapSaveFrame(LPCTSTR pszFile, short iFormat, short iBitsPerPixel, short iQuality, long bMultipage)
  526. {
  527.     short result;
  528.     static BYTE parms[] =
  529.         VTS_BSTR VTS_I2 VTS_I2 VTS_I2 VTS_I4;
  530.     InvokeHelper(0x2c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  531.         pszFile, iFormat, iBitsPerPixel, iQuality, bMultipage);
  532.     return result;
  533. }
  534.  
  535. short CLeadCap::CapCopyFrameToClipboard()
  536. {
  537.     short result;
  538.     InvokeHelper(0x2e, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  539.     return result;
  540. }
  541.  
  542. long CLeadCap::GetBitmap()
  543. {
  544.     long result;
  545.     InvokeHelper(0x2f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  546.     return result;
  547. }
  548.  
  549. short CLeadCap::GetCapWaveFormatTag(short iIndex)
  550. {
  551.     short result;
  552.     static BYTE parms[] =
  553.         VTS_I2;
  554.     InvokeHelper(0x30, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  555.         iIndex);
  556.     return result;
  557. }
  558.  
  559. void CLeadCap::SetCapWaveFormatTag(short iIndex, short nNewValue)
  560. {
  561.     static BYTE parms[] =
  562.         VTS_I2 VTS_I2;
  563.     InvokeHelper(0x30, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  564.          iIndex, nNewValue);
  565. }
  566.  
  567. short CLeadCap::GetCapWaveChannels(short iIndex)
  568. {
  569.     short result;
  570.     static BYTE parms[] =
  571.         VTS_I2;
  572.     InvokeHelper(0x31, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  573.         iIndex);
  574.     return result;
  575. }
  576.  
  577. void CLeadCap::SetCapWaveChannels(short iIndex, short nNewValue)
  578. {
  579.     static BYTE parms[] =
  580.         VTS_I2 VTS_I2;
  581.     InvokeHelper(0x31, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  582.          iIndex, nNewValue);
  583. }
  584.  
  585. long CLeadCap::GetCapWaveSamplesPerSec(short iIndex)
  586. {
  587.     long result;
  588.     static BYTE parms[] =
  589.         VTS_I2;
  590.     InvokeHelper(0x32, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  591.         iIndex);
  592.     return result;
  593. }
  594.  
  595. void CLeadCap::SetCapWaveSamplesPerSec(short iIndex, long nNewValue)
  596. {
  597.     static BYTE parms[] =
  598.         VTS_I2 VTS_I4;
  599.     InvokeHelper(0x32, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  600.          iIndex, nNewValue);
  601. }
  602.  
  603. long CLeadCap::GetCapWaveAvgBytesPerSec(short iIndex)
  604. {
  605.     long result;
  606.     static BYTE parms[] =
  607.         VTS_I2;
  608.     InvokeHelper(0x33, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  609.         iIndex);
  610.     return result;
  611. }
  612.  
  613. void CLeadCap::SetCapWaveAvgBytesPerSec(short iIndex, long nNewValue)
  614. {
  615.     static BYTE parms[] =
  616.         VTS_I2 VTS_I4;
  617.     InvokeHelper(0x33, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  618.          iIndex, nNewValue);
  619. }
  620.  
  621. short CLeadCap::GetCapWaveBlockAlign(short iIndex)
  622. {
  623.     short result;
  624.     static BYTE parms[] =
  625.         VTS_I2;
  626.     InvokeHelper(0x34, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  627.         iIndex);
  628.     return result;
  629. }
  630.  
  631. void CLeadCap::SetCapWaveBlockAlign(short iIndex, short nNewValue)
  632. {
  633.     static BYTE parms[] =
  634.         VTS_I2 VTS_I2;
  635.     InvokeHelper(0x34, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  636.          iIndex, nNewValue);
  637. }
  638.  
  639. short CLeadCap::GetCapWaveBitsPerSample(short iIndex)
  640. {
  641.     short result;
  642.     static BYTE parms[] =
  643.         VTS_I2;
  644.     InvokeHelper(0x35, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  645.         iIndex);
  646.     return result;
  647. }
  648.  
  649. void CLeadCap::SetCapWaveBitsPerSample(short iIndex, short nNewValue)
  650. {
  651.     static BYTE parms[] =
  652.         VTS_I2 VTS_I2;
  653.     InvokeHelper(0x35, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  654.          iIndex, nNewValue);
  655. }
  656.  
  657. short CLeadCap::CapOpenRecord(short iDevice, short iBuffers, long lBufsize)
  658. {
  659.     short result;
  660.     static BYTE parms[] =
  661.         VTS_I2 VTS_I2 VTS_I4;
  662.     InvokeHelper(0x37, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  663.         iDevice, iBuffers, lBufsize);
  664.     return result;
  665. }
  666.  
  667. short CLeadCap::CapStartRecord()
  668. {
  669.     short result;
  670.     InvokeHelper(0x38, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  671.     return result;
  672. }
  673.  
  674. short CLeadCap::CapStopRecord()
  675. {
  676.     short result;
  677.     InvokeHelper(0x39, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  678.     return result;
  679. }
  680.  
  681. short CLeadCap::CapCloseRecord()
  682. {
  683.     short result;
  684.     InvokeHelper(0x3a, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  685.     return result;
  686. }
  687.  
  688. short CLeadCap::CapStopFeedSound(long hSound, long bWhenReady)
  689. {
  690.     short result;
  691.     static BYTE parms[] =
  692.         VTS_I4 VTS_I4;
  693.     InvokeHelper(0x3c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  694.         hSound, bWhenReady);
  695.     return result;
  696. }
  697.  
  698. short CLeadCap::CapFeedResetSound(long hSound)
  699. {
  700.     short result;
  701.     static BYTE parms[] =
  702.         VTS_I4;
  703.     InvokeHelper(0x3d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  704.         hSound);
  705.     return result;
  706. }
  707.  
  708. short CLeadCap::CapStartFeedSound(LPCTSTR pszFile, short iDevice, short iBuffers, short iFlags, long* phSound)
  709. {
  710.     short result;
  711.     static BYTE parms[] =
  712.         VTS_BSTR VTS_I2 VTS_I2 VTS_I2 VTS_PI4;
  713.     InvokeHelper(0x3e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  714.         pszFile, iDevice, iBuffers, iFlags, phSound);
  715.     return result;
  716. }
  717.  
  718. short CLeadCap::CapFeedSound(long hSound, VARIANT* pData, long lSize)
  719. {
  720.     short result;
  721.     static BYTE parms[] =
  722.         VTS_I4 VTS_PVARIANT VTS_I4;
  723.     InvokeHelper(0x3f, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  724.         hSound, pData, lSize);
  725.     return result;
  726. }
  727.  
  728. VARIANT CLeadCap::GetCapWaveExtraData(short iIndex)
  729. {
  730.     VARIANT result;
  731.     static BYTE parms[] =
  732.         VTS_I2;
  733.     InvokeHelper(0x40, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  734.         iIndex);
  735.     return result;
  736. }
  737.  
  738. void CLeadCap::SetCapWaveExtraData(short iIndex, const VARIANT& newValue)
  739. {
  740.     static BYTE parms[] =
  741.         VTS_I2 VTS_VARIANT;
  742.     InvokeHelper(0x40, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  743.          iIndex, &newValue);
  744. }
  745.  
  746. long CLeadCap::GetCapWaveExtraSize(short iIndex)
  747. {
  748.     long result;
  749.     static BYTE parms[] =
  750.         VTS_I2;
  751.     InvokeHelper(0x41, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  752.         iIndex);
  753.     return result;
  754. }
  755.  
  756. void CLeadCap::SetCapWaveExtraSize(short iIndex, long nNewValue)
  757. {
  758.     static BYTE parms[] =
  759.         VTS_I2 VTS_I4;
  760.     InvokeHelper(0x41, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  761.          iIndex, nNewValue);
  762. }
  763.  
  764. short CLeadCap::CapSetVolume(short iDevice, long lLine, long lLeftVolume, long lRightVolume)
  765. {
  766.     short result;
  767.     static BYTE parms[] =
  768.         VTS_I2 VTS_I4 VTS_I4 VTS_I4;
  769.     InvokeHelper(0x42, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  770.         iDevice, lLine, lLeftVolume, lRightVolume);
  771.     return result;
  772. }
  773.  
  774. short CLeadCap::CapGetVolume(short iDevice, long lLine, long* lLeftVolume, long* lRightVolume)
  775. {
  776.     short result;
  777.     static BYTE parms[] =
  778.         VTS_I2 VTS_I4 VTS_PI4 VTS_PI4;
  779.     InvokeHelper(0x43, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  780.         iDevice, lLine, lLeftVolume, lRightVolume);
  781.     return result;
  782. }
  783.  
  784. short CLeadCap::CapSetMute(short iDevice, long lLine, long bMute)
  785. {
  786.     short result;
  787.     static BYTE parms[] =
  788.         VTS_I2 VTS_I4 VTS_I4;
  789.     InvokeHelper(0x44, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  790.         iDevice, lLine, bMute);
  791.     return result;
  792. }
  793.  
  794. short CLeadCap::CapIsMuted(short iDevice, long lLine, long* bMute)
  795. {
  796.     short result;
  797.     static BYTE parms[] =
  798.         VTS_I2 VTS_I4 VTS_PI4;
  799.     InvokeHelper(0x45, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  800.         iDevice, lLine, bMute);
  801.     return result;
  802. }
  803.  
  804. short CLeadCap::CapSelect(short iDevice, long lLine, long bSelect)
  805. {
  806.     short result;
  807.     static BYTE parms[] =
  808.         VTS_I2 VTS_I4 VTS_I4;
  809.     InvokeHelper(0x46, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  810.         iDevice, lLine, bSelect);
  811.     return result;
  812. }
  813.  
  814. short CLeadCap::CapIsSelected(short iDevice, long lLine, long* bSelect)
  815. {
  816.     short result;
  817.     static BYTE parms[] =
  818.         VTS_I2 VTS_I4 VTS_PI4;
  819.     InvokeHelper(0x47, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  820.         iDevice, lLine, bSelect);
  821.     return result;
  822. }
  823.  
  824. void CLeadCap::CapEnumMixerLines(short iType)
  825. {
  826.     static BYTE parms[] =
  827.         VTS_I2;
  828.     InvokeHelper(0x48, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  829.          iType);
  830. }
  831.  
  832. short CLeadCap::CapGetDefaultAudFormat(short iIndex)
  833. {
  834.     short result;
  835.     static BYTE parms[] =
  836.         VTS_I2;
  837.     InvokeHelper(0x57, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  838.         iIndex);
  839.     return result;
  840. }
  841.  
  842. short CLeadCap::GetCapAudioPeak()
  843. {
  844.     short result;
  845.     InvokeHelper(0x58, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  846.     return result;
  847. }
  848.  
  849. void CLeadCap::UnlockSupport(short iType, LPCTSTR pszKey)
  850. {
  851.     static BYTE parms[] =
  852.         VTS_I2 VTS_BSTR;
  853.     InvokeHelper(0x59, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  854.          iType, pszKey);
  855. }
  856.  
  857. long CLeadCap::IsSupportLocked(short iType)
  858. {
  859.     long result;
  860.     static BYTE parms[] =
  861.         VTS_I2;
  862.     InvokeHelper(0x5a, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  863.         iType);
  864.     return result;
  865. }
  866.  
  867. VARIANT CLeadCap::CapGetAudioData()
  868. {
  869.     VARIANT result;
  870.     InvokeHelper(0x5b, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  871.     return result;
  872. }
  873.