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.

110 lines
2.6 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 "logui.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "font.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CLogUI
  10. IMPLEMENT_DYNCREATE(CLogUI, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CLogUI properties
  13. CString CLogUI::GetCaption()
  14. {
  15. CString result;
  16. GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  17. return result;
  18. }
  19. void CLogUI::SetCaption(LPCTSTR propVal)
  20. {
  21. SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  22. }
  23. COleFont CLogUI::GetFont()
  24. {
  25. LPDISPATCH pDispatch;
  26. GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  27. return COleFont(pDispatch);
  28. }
  29. void CLogUI::SetFont(LPDISPATCH propVal)
  30. {
  31. SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  32. }
  33. BOOL CLogUI::GetEnabled()
  34. {
  35. BOOL result;
  36. GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  37. return result;
  38. }
  39. void CLogUI::SetEnabled(BOOL propVal)
  40. {
  41. SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  42. }
  43. short CLogUI::GetBorderStyle()
  44. {
  45. short result;
  46. GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  47. return result;
  48. }
  49. void CLogUI::SetBorderStyle(short propVal)
  50. {
  51. SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CLogUI operations
  55. void CLogUI::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 CLogUI::ApplyLogSelection()
  63. {
  64. InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  65. }
  66. void CLogUI::SetComboBox(HWND hComboBox)
  67. {
  68. static BYTE parms[] =
  69. VTS_I4;
  70. InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  71. hComboBox);
  72. }
  73. void CLogUI::Terminate()
  74. {
  75. InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  76. }
  77. void CLogUI::DoClick()
  78. {
  79. InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  80. }
  81. void CLogUI::SetUserData(LPCTSTR szName, LPCTSTR szPassword)
  82. {
  83. static BYTE parms[] =
  84. VTS_BSTR VTS_BSTR;
  85. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  86. szName, szPassword);
  87. }