home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / mailx6 / _setup.2 / Group7 / msess.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-08  |  6.4 KB  |  356 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 "msess.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMSess
  12.  
  13. IMPLEMENT_DYNCREATE(CMSess, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMSess properties
  17.  
  18. BOOL CMSess::GetLogonUI()
  19. {
  20.     BOOL result;
  21.     GetProperty(0x1, VT_BOOL, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CMSess::SetLogonUI(BOOL propVal)
  26. {
  27.     SetProperty(0x1, VT_BOOL, propVal);
  28. }
  29.  
  30. CString CMSess::GetUser()
  31. {
  32.     CString result;
  33.     GetProperty(0x2, VT_BSTR, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CMSess::SetUser(LPCTSTR propVal)
  38. {
  39.     SetProperty(0x2, VT_BSTR, propVal);
  40. }
  41.  
  42. CString CMSess::GetPassword()
  43. {
  44.     CString result;
  45.     GetProperty(0x3, VT_BSTR, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CMSess::SetPassword(LPCTSTR propVal)
  50. {
  51.     SetProperty(0x3, VT_BSTR, propVal);
  52. }
  53.  
  54. BOOL CMSess::GetNewSession()
  55. {
  56.     BOOL result;
  57.     GetProperty(0x4, VT_BOOL, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CMSess::SetNewSession(BOOL propVal)
  62. {
  63.     SetProperty(0x4, VT_BOOL, propVal);
  64. }
  65.  
  66. BOOL CMSess::GetDisplayErrors()
  67. {
  68.     BOOL result;
  69.     GetProperty(0x5, VT_BOOL, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CMSess::SetDisplayErrors(BOOL propVal)
  74. {
  75.     SetProperty(0x5, VT_BOOL, propVal);
  76. }
  77.  
  78. BOOL CMSess::GetDownLoadMsg()
  79. {
  80.     BOOL result;
  81.     GetProperty(0x6, VT_BOOL, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CMSess::SetDownLoadMsg(BOOL propVal)
  86. {
  87.     SetProperty(0x6, VT_BOOL, propVal);
  88. }
  89.  
  90. short CMSess::GetMail_Type()
  91. {
  92.     short result;
  93.     GetProperty(0x9, VT_I2, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CMSess::SetMail_Type(short propVal)
  98. {
  99.     SetProperty(0x9, VT_I2, propVal);
  100. }
  101.  
  102. BOOL CMSess::GetLogon()
  103. {
  104.     BOOL result;
  105.     GetProperty(0xa, VT_BOOL, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CMSess::SetLogon(BOOL propVal)
  110. {
  111.     SetProperty(0xa, VT_BOOL, propVal);
  112. }
  113.  
  114. CString CMSess::GetErrorText()
  115. {
  116.     CString result;
  117.     GetProperty(0xb, VT_BSTR, (void*)&result);
  118.     return result;
  119. }
  120.  
  121. void CMSess::SetErrorText(LPCTSTR propVal)
  122. {
  123.     SetProperty(0xb, VT_BSTR, propVal);
  124. }
  125.  
  126. short CMSess::GetErrorNum()
  127. {
  128.     short result;
  129.     GetProperty(0xc, VT_I2, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CMSess::SetErrorNum(short propVal)
  134. {
  135.     SetProperty(0xc, VT_I2, propVal);
  136. }
  137.  
  138. CString CMSess::GetDefaultPath()
  139. {
  140.     CString result;
  141.     GetProperty(0x7, VT_BSTR, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CMSess::SetDefaultPath(LPCTSTR propVal)
  146. {
  147.     SetProperty(0x7, VT_BSTR, propVal);
  148. }
  149.  
  150. CString CMSess::GetPOPath()
  151. {
  152.     CString result;
  153.     GetProperty(0xd, VT_BSTR, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CMSess::SetPOPath(LPCTSTR propVal)
  158. {
  159.     SetProperty(0xd, VT_BSTR, propVal);
  160. }
  161.  
  162. CString CMSess::GetCurrentFolder()
  163. {
  164.     CString result;
  165.     GetProperty(0xe, VT_BSTR, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CMSess::SetCurrentFolder(LPCTSTR propVal)
  170. {
  171.     SetProperty(0xe, VT_BSTR, propVal);
  172. }
  173.  
  174. CString CMSess::GetChangePassword()
  175. {
  176.     CString result;
  177.     GetProperty(0xf, VT_BSTR, (void*)&result);
  178.     return result;
  179. }
  180.  
  181. void CMSess::SetChangePassword(LPCTSTR propVal)
  182. {
  183.     SetProperty(0xf, VT_BSTR, propVal);
  184. }
  185.  
  186. CString CMSess::GetReturnAddress()
  187. {
  188.     CString result;
  189.     GetProperty(0x10, VT_BSTR, (void*)&result);
  190.     return result;
  191. }
  192.  
  193. void CMSess::SetReturnAddress(LPCTSTR propVal)
  194. {
  195.     SetProperty(0x10, VT_BSTR, propVal);
  196. }
  197.  
  198. CString CMSess::GetSMTPServer()
  199. {
  200.     CString result;
  201.     GetProperty(0x11, VT_BSTR, (void*)&result);
  202.     return result;
  203. }
  204.  
  205. void CMSess::SetSMTPServer(LPCTSTR propVal)
  206. {
  207.     SetProperty(0x11, VT_BSTR, propVal);
  208. }
  209.  
  210. BOOL CMSess::GetLeaveMailOnServer()
  211. {
  212.     BOOL result;
  213.     GetProperty(0x12, VT_BOOL, (void*)&result);
  214.     return result;
  215. }
  216.  
  217. void CMSess::SetLeaveMailOnServer(BOOL propVal)
  218. {
  219.     SetProperty(0x12, VT_BOOL, propVal);
  220. }
  221.  
  222. CString CMSess::GetPOPServer()
  223. {
  224.     CString result;
  225.     GetProperty(0x13, VT_BSTR, (void*)&result);
  226.     return result;
  227. }
  228.  
  229. void CMSess::SetPOPServer(LPCTSTR propVal)
  230. {
  231.     SetProperty(0x13, VT_BSTR, propVal);
  232. }
  233.  
  234. CString CMSess::GetRealName()
  235. {
  236.     CString result;
  237.     GetProperty(0x14, VT_BSTR, (void*)&result);
  238.     return result;
  239. }
  240.  
  241. void CMSess::SetRealName(LPCTSTR propVal)
  242. {
  243.     SetProperty(0x14, VT_BSTR, propVal);
  244. }
  245.  
  246. short CMSess::GetAction()
  247. {
  248.     short result;
  249.     GetProperty(0x15, VT_I2, (void*)&result);
  250.     return result;
  251. }
  252.  
  253. void CMSess::SetAction(short propVal)
  254. {
  255.     SetProperty(0x15, VT_I2, propVal);
  256. }
  257.  
  258. CString CMSess::GetMapiCustomLibName()
  259. {
  260.     CString result;
  261.     GetProperty(0x8, VT_BSTR, (void*)&result);
  262.     return result;
  263. }
  264.  
  265. void CMSess::SetMapiCustomLibName(LPCTSTR propVal)
  266. {
  267.     SetProperty(0x8, VT_BSTR, propVal);
  268. }
  269.  
  270. long CMSess::GetFolderCount()
  271. {
  272.     long result;
  273.     GetProperty(0x16, VT_I4, (void*)&result);
  274.     return result;
  275. }
  276.  
  277. void CMSess::SetFolderCount(long propVal)
  278. {
  279.     SetProperty(0x16, VT_I4, propVal);
  280. }
  281.  
  282. long CMSess::GetFolderNum()
  283. {
  284.     long result;
  285.     GetProperty(0x17, VT_I4, (void*)&result);
  286.     return result;
  287. }
  288.  
  289. void CMSess::SetFolderNum(long propVal)
  290. {
  291.     SetProperty(0x17, VT_I4, propVal);
  292. }
  293.  
  294. long CMSess::GetObjRef()
  295. {
  296.     long result;
  297.     GetProperty(0x18, VT_I4, (void*)&result);
  298.     return result;
  299. }
  300.  
  301. void CMSess::SetObjRef(long propVal)
  302. {
  303.     SetProperty(0x18, VT_I4, propVal);
  304. }
  305.  
  306. CString CMSess::GetCurrentUser()
  307. {
  308.     CString result;
  309.     GetProperty(0x19, VT_BSTR, (void*)&result);
  310.     return result;
  311. }
  312.  
  313. void CMSess::SetCurrentUser(LPCTSTR propVal)
  314. {
  315.     SetProperty(0x19, VT_BSTR, propVal);
  316. }
  317.  
  318. /////////////////////////////////////////////////////////////////////////////
  319. // CMSess operations
  320.  
  321. BOOL CMSess::MailLogon(BOOL bAction)
  322. {
  323.     BOOL result;
  324.     static BYTE parms[] =
  325.         VTS_BOOL;
  326.     InvokeHelper(0x1a, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  327.         bAction);
  328.     return result;
  329. }
  330.  
  331. BOOL CMSess::IsLogon()
  332. {
  333.     BOOL result;
  334.     InvokeHelper(0x1b, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  335.     return result;
  336. }
  337.  
  338. BOOL CMSess::InvokeDialogConfig()
  339. {
  340.     BOOL result;
  341.     InvokeHelper(0x1c, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  342.     return result;
  343. }
  344.  
  345. BOOL CMSess::NewMessages()
  346. {
  347.     BOOL result;
  348.     InvokeHelper(0x1d, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  349.     return result;
  350. }
  351.  
  352. void CMSess::AboutBox()
  353. {
  354.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  355. }
  356.