Source code of Windows XP (NT5)
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.

80 lines
2.5 KiB

  1. #ifndef __MONITOR_H__
  2. #define __MONITOR_H__
  3. /*---------------------------------------------------------------------------
  4. File: Monitor.h
  5. Comments: ...
  6. (c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
  7. Proprietary and confidential to Mission Critical Software, Inc.
  8. REVISION LOG ENTRY
  9. Revision By: Christy Boles
  10. Revised on 03/04/99 17:12:36
  11. ---------------------------------------------------------------------------
  12. */
  13. DWORD __stdcall ResultMonitorFn(void * arg);
  14. DWORD __stdcall LogReaderFn(void * arg);
  15. DWORD __stdcall MonitorRunningAgents(void * arg);
  16. #define DCT_UPDATE_ENTRY (WM_APP+2)
  17. #define DCT_ERROR_ENTRY (WM_APP+3)
  18. #define DCT_SERVER_COUNT (WM_APP+4)
  19. #define DCT_DETAIL_REFRESH (WM_APP+5)
  20. #define DCT_UPDATE_COUNTS (WM_APP+6)
  21. #define DCT_UPDATE_TOTALS (WM_APP+7)
  22. struct ComputerStats
  23. {
  24. DWORD total;
  25. DWORD numInstalled;
  26. DWORD numRunning;
  27. DWORD numFinished;
  28. DWORD numError;
  29. };
  30. struct DetailStats
  31. {
  32. ULONGLONG filesExamined;
  33. ULONGLONG filesChanged;
  34. ULONGLONG filesUnchanged;
  35. ULONGLONG directoriesExamined;
  36. ULONGLONG directoriesChanged;
  37. ULONGLONG directoriesUnchanged;
  38. ULONGLONG sharesExamined;
  39. ULONGLONG sharesChanged;
  40. ULONGLONG sharesUnchanged;
  41. ULONGLONG membersExamined;
  42. ULONGLONG membersChanged;
  43. ULONGLONG membersUnchanged;
  44. ULONGLONG rightsExamined;
  45. ULONGLONG rightsChanged;
  46. ULONGLONG rightsUnchanged;
  47. };
  48. class TServerNode;
  49. BOOL // ret- TRUE if successful
  50. ReadResults(
  51. TServerNode * pServer, // in - pointer to server node containing server name
  52. WCHAR const * directory, // in - directory where results files are stored
  53. WCHAR const * filename, // in - filename for this agent's job
  54. DetailStats * pStats, // out- counts of items processed by the agent
  55. CString & plugInString, // out- description of results from plug-ins
  56. BOOL bSaveResults // in - flag, whether to call store results for plugins
  57. );
  58. void
  59. ProcessResults(
  60. TServerNode * pServer,
  61. WCHAR const * directory,
  62. WCHAR const * filename
  63. );
  64. #endif //__MONITOR_H__