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.

142 lines
4.3 KiB

  1. #if !defined(AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_)
  2. #define AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // AgentDetail.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CAgentDetail dialog
  10. #include "resource.h"
  11. #include "ServList.hpp"
  12. #include "Globals.h"
  13. class CAgentDetailDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CAgentDetailDlg(CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CAgentDetailDlg)
  20. enum { IDD = IDD_DETAILS };
  21. CButton m_StopAgentButton;
  22. CButton m_RefreshButton;
  23. CButton m_ViewLogButton;
  24. CButton m_PlugInButton;
  25. CButton m_OKButton;
  26. CStatic m_UnchangedLabelStatic;
  27. CStatic m_SharesStatic;
  28. CStatic m_FilesStatic;
  29. CStatic m_ExaminedStatic;
  30. CStatic m_DirStatic;
  31. CStatic m_ChangedStatic;
  32. CString m_Current;
  33. CString m_Stats;
  34. CString m_Status;
  35. CString m_FilesChanged;
  36. CString m_FilesExamined;
  37. CString m_FilesUnchanged;
  38. CString m_DirectoriesChanged;
  39. CString m_DirectoriesExamined;
  40. CString m_DirectoriesUnchanged;
  41. CString m_SharesChanged;
  42. CString m_SharesExamined;
  43. CString m_SharesUnchanged;
  44. CString m_DirectoryLabelText;
  45. CString m_FilesLabelText;
  46. CString m_Operation;
  47. CString m_SharesLabelText;
  48. CString m_ChangedLabel;
  49. CString m_ExaminedLabel;
  50. CString m_UnchangedLabel;
  51. CString m_RefreshRate;
  52. //}}AFX_DATA
  53. CString m_ServerName;
  54. CString m_LogFile;
  55. BOOL m_LogFileIsValid;
  56. // Overrides
  57. // ClassWizard generated virtual function overrides
  58. //{{AFX_VIRTUAL(CAgentDetailDlg)
  59. protected:
  60. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  61. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  62. //}}AFX_VIRTUAL
  63. public:
  64. void SetNode(TServerNode * p) { m_pNode = p; }
  65. void SetJobID(WCHAR const * job) { m_JobGuid = job; }
  66. BOOL IsAgentAlive() { return m_AgentAlive; }
  67. BOOL IsStatusUnknown() { return m_StatusUnknown; }
  68. void SetStats(DetailStats * pStats) { m_pStats = pStats; }
  69. void SetPlugInText(CString pText) { m_PlugInText = pText; }
  70. void SetFormat(int format) { m_format = format; }
  71. void SetRefreshInterval(int interval) { m_RefreshRate.Format(L"%ld",interval); }
  72. void SetLogFile(CString file) { m_LogFile = file; }
  73. void SetLogFileValid(BOOL bValid) { m_LogFileIsValid = bValid; }
  74. void SetGatheringInfo(BOOL bValue) { m_bGatheringInfo = bValue;}
  75. void SetAutoCloseHide(int nValue)
  76. {
  77. switch (nValue)
  78. {
  79. case 2:
  80. m_bAutoHide = TRUE;
  81. m_bAutoClose = TRUE;
  82. break;
  83. case 1:
  84. m_bAutoHide = FALSE;
  85. m_bAutoClose = TRUE;
  86. break;
  87. default:
  88. m_bAutoHide = FALSE;
  89. m_bAutoClose = FALSE;
  90. break;
  91. }
  92. }
  93. // Implementation
  94. protected:
  95. IDCTAgentPtr m_pAgent;
  96. TServerNode * m_pNode;
  97. HANDLE m_hBinding;
  98. _bstr_t m_JobGuid;
  99. BOOL m_bCoInitialized;
  100. int m_format;
  101. BOOL m_AgentAlive;
  102. DetailStats * m_pStats;
  103. CString m_PlugInText;
  104. BOOL m_StatusUnknown;
  105. BOOL m_bGatheringInfo;
  106. BOOL m_bAutoHide;
  107. BOOL m_bAutoClose;
  108. BOOL m_bAlwaysEnableClose;
  109. // Generated message map functions
  110. //{{AFX_MSG(CAgentDetailDlg)
  111. virtual BOOL OnInitDialog();
  112. afx_msg void OnRefresh();
  113. virtual void OnOK();
  114. afx_msg void OnChangeEdit2();
  115. afx_msg void OnStopAgent();
  116. afx_msg void OnViewLog();
  117. afx_msg void OnPlugInResults();
  118. afx_msg void OnClose();
  119. afx_msg void OnNcPaint();
  120. //}}AFX_MSG
  121. LRESULT DoRefresh(UINT nID, long x);
  122. void SetupAcctReplFormat();
  123. void SetupFSTFormat();
  124. void SetupESTFormat();
  125. void SetupOtherFormat();
  126. DECLARE_MESSAGE_MAP()
  127. };
  128. DWORD DoRpcQuery(HANDLE hBinding,LPUNKNOWN * ppUnk);
  129. //{{AFX_INSERT_LOCATION}}
  130. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  131. #endif // !defined(AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_)