Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.3 KiB

  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 "rat.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "font.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CRat
  10. IMPLEMENT_DYNCREATE(CRat, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CRat properties
  13. short CRat::GetBorderStyle()
  14. {
  15. short result;
  16. GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  17. return result;
  18. }
  19. void CRat::SetBorderStyle(short propVal)
  20. {
  21. SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  22. }
  23. BOOL CRat::GetEnabled()
  24. {
  25. BOOL result;
  26. GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  27. return result;
  28. }
  29. void CRat::SetEnabled(BOOL propVal)
  30. {
  31. SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  32. }
  33. COleFont CRat::GetFont()
  34. {
  35. LPDISPATCH pDispatch;
  36. GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  37. return COleFont(pDispatch);
  38. }
  39. void CRat::SetFont(LPDISPATCH propVal)
  40. {
  41. SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  42. }
  43. CString CRat::GetCaption()
  44. {
  45. CString result;
  46. GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  47. return result;
  48. }
  49. void CRat::SetCaption(LPCTSTR propVal)
  50. {
  51. SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CRat operations
  55. void CRat::SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget)
  56. {
  57. static BYTE parms[] =
  58. VTS_BSTR VTS_BSTR;
  59. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  60. szMachineName, szMetaTarget);
  61. }
  62. void CRat::SetUserData(LPCTSTR szUserName, LPCTSTR szUserPassword)
  63. {
  64. static BYTE parms[] = VTS_BSTR VTS_BSTR;
  65. InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  66. szUserName, szUserPassword);
  67. }
  68. void CRat::SetUrl(LPCTSTR szURL)
  69. {
  70. static BYTE parms[] = VTS_BSTR;
  71. InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  72. szURL);
  73. }
  74. void CRat::DoClick()
  75. {
  76. InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  77. }