home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / leadnet.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-13  |  5.9 KB  |  236 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 "leadnet.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CLeadNet
  12.  
  13. IMPLEMENT_DYNCREATE(CLeadNet, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CLeadNet properties
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CLeadNet operations
  20.  
  21. unsigned long CLeadNet::AddRef()
  22. {
  23.     unsigned long result;
  24.     InvokeHelper(0x60000001, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  25.     return result;
  26. }
  27.  
  28. unsigned long CLeadNet::Release()
  29. {
  30.     unsigned long result;
  31.     InvokeHelper(0x60000002, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  32.     return result;
  33. }
  34.  
  35. short CLeadNet::InetConnect(LPCTSTR pszComputer, short iPort)
  36. {
  37.     short result;
  38.     static BYTE parms[] =
  39.         VTS_BSTR VTS_I2;
  40.     InvokeHelper(0x1, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  41.         pszComputer, iPort);
  42.     return result;
  43. }
  44.  
  45. short CLeadNet::InetServerClose(short iServer)
  46. {
  47.     short result;
  48.     static BYTE parms[] =
  49.         VTS_I2;
  50.     InvokeHelper(0x2, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  51.         iServer);
  52.     return result;
  53. }
  54.  
  55. short CLeadNet::InetAcceptConnect(short iServer, short* piComputer)
  56. {
  57.     short result;
  58.     static BYTE parms[] =
  59.         VTS_I2 VTS_PI2;
  60.     InvokeHelper(0x3, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  61.         iServer, piComputer);
  62.     return result;
  63. }
  64.  
  65. short CLeadNet::InetSendBitmap(long hBitmap, short iFormat, short iBitsPerPixel, short iQuality)
  66. {
  67.     short result;
  68.     static BYTE parms[] =
  69.         VTS_I4 VTS_I2 VTS_I2 VTS_I2;
  70.     InvokeHelper(0x4, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  71.         hBitmap, iFormat, iBitsPerPixel, iQuality);
  72.     return result;
  73. }
  74.  
  75. short CLeadNet::InetSendDIB(long hDib, short iFormat, short iBitsPerPixel, short iQuality)
  76. {
  77.     short result;
  78.     static BYTE parms[] =
  79.         VTS_I4 VTS_I2 VTS_I2 VTS_I2;
  80.     InvokeHelper(0x5, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  81.         hDib, iFormat, iBitsPerPixel, iQuality);
  82.     return result;
  83. }
  84.  
  85. short CLeadNet::InetSendData(VARIANT* pData, long lSize, short iType)
  86. {
  87.     short result;
  88.     static BYTE parms[] =
  89.         VTS_PVARIANT VTS_I4 VTS_I2;
  90.     InvokeHelper(0x6, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  91.         pData, lSize, iType);
  92.     return result;
  93. }
  94.  
  95. short CLeadNet::GetSendList(short iIndex)
  96. {
  97.     short result;
  98.     static BYTE parms[] =
  99.         VTS_I2;
  100.     InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  101.         iIndex);
  102.     return result;
  103. }
  104.  
  105. void CLeadNet::SetSendList(short iIndex, short nNewValue)
  106. {
  107.     static BYTE parms[] =
  108.         VTS_I2 VTS_I2;
  109.     InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  110.          iIndex, nNewValue);
  111. }
  112.  
  113. short CLeadNet::GetSendListNum()
  114. {
  115.     short result;
  116.     InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  117.     return result;
  118. }
  119.  
  120. long CLeadNet::GetEnableMethodErrors()
  121. {
  122.     long result;
  123.     InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  124.     return result;
  125. }
  126.  
  127. void CLeadNet::SetEnableMethodErrors(long nNewValue)
  128. {
  129.     static BYTE parms[] =
  130.         VTS_I4;
  131.     InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  132.          nNewValue);
  133. }
  134.  
  135. short CLeadNet::InetServerInit(short* piServer, short iPort)
  136. {
  137.     short result;
  138.     static BYTE parms[] =
  139.         VTS_PI2 VTS_I2;
  140.     InvokeHelper(0xa, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  141.         piServer, iPort);
  142.     return result;
  143. }
  144.  
  145. short CLeadNet::InetDisconnect(short iComputer)
  146. {
  147.     short result;
  148.     static BYTE parms[] =
  149.         VTS_I2;
  150.     InvokeHelper(0xb, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  151.         iComputer);
  152.     return result;
  153. }
  154.  
  155. short CLeadNet::GetConnectList(short iIndex)
  156. {
  157.     short result;
  158.     static BYTE parms[] =
  159.         VTS_I2;
  160.     InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  161.         iIndex);
  162.     return result;
  163. }
  164.  
  165. short CLeadNet::GetConnectListNum()
  166. {
  167.     short result;
  168.     InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  169.     return result;
  170. }
  171.  
  172. short CLeadNet::InetGetHostName(short iComputer, short iType, BSTR* pszHostName)
  173. {
  174.     short result;
  175.     static BYTE parms[] =
  176.         VTS_I2 VTS_I2 VTS_PBSTR;
  177.     InvokeHelper(0xe, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  178.         iComputer, iType, pszHostName);
  179.     return result;
  180. }
  181.  
  182. void CLeadNet::UnlockSupport(short iType, LPCTSTR pszKey)
  183. {
  184.     static BYTE parms[] =
  185.         VTS_I2 VTS_BSTR;
  186.     InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  187.          iType, pszKey);
  188. }
  189.  
  190. short CLeadNet::InetSendSound(short iFormatTag, short iChannels, long lSamplesPerSec, long AvgBytesPerSec, short iBlockAlign, short iBitsPerSample, short iExtraDataSize, VARIANT* pExtraData, VARIANT* pSoundData, long lDataSize)
  191. {
  192.     short result;
  193.     static BYTE parms[] =
  194.         VTS_I2 VTS_I2 VTS_I4 VTS_I4 VTS_I2 VTS_I2 VTS_I2 VTS_PVARIANT VTS_PVARIANT VTS_I4;
  195.     InvokeHelper(0x10, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  196.         iFormatTag, iChannels, lSamplesPerSec, AvgBytesPerSec, iBlockAlign, iBitsPerSample, iExtraDataSize, pExtraData, pSoundData, lDataSize);
  197.     return result;
  198. }
  199.  
  200. long CLeadNet::IsSupportLocked(short iType)
  201. {
  202.     long result;
  203.     static BYTE parms[] =
  204.         VTS_I2;
  205.     InvokeHelper(0x11, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  206.         iType);
  207.     return result;
  208. }
  209.  
  210. VARIANT CLeadNet::InetGetData()
  211. {
  212.     VARIANT result;
  213.     InvokeHelper(0x14, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  214.     return result;
  215. }
  216.  
  217. long CLeadNet::GetInetQueueSize(short iComputer)
  218. {
  219.     long result;
  220.     static BYTE parms[] =
  221.         VTS_I2;
  222.     InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  223.         iComputer);
  224.     return result;
  225. }
  226.  
  227. short CLeadNet::InetClearQueue(short iComputer)
  228. {
  229.     short result;
  230.     static BYTE parms[] =
  231.         VTS_I2;
  232.     InvokeHelper(0x16, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  233.         iComputer);
  234.     return result;
  235. }
  236.