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.

79 lines
2.6 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. #define DCT_UPDATE_ENTRY (WM_APP+2)
  16. #define DCT_ERROR_ENTRY (WM_APP+3)
  17. #define DCT_SERVER_COUNT (WM_APP+4)
  18. #define DCT_DETAIL_REFRESH (WM_APP+5)
  19. #define DCT_UPDATE_COUNTS (WM_APP+6)
  20. #define DCT_UPDATE_TOTALS (WM_APP+7)
  21. struct ComputerStats
  22. {
  23. DWORD total;
  24. DWORD numInstalled;
  25. DWORD numRunning;
  26. DWORD numFinished;
  27. DWORD numError;
  28. };
  29. struct DetailStats
  30. {
  31. ULONGLONG filesExamined;
  32. ULONGLONG filesChanged;
  33. ULONGLONG filesUnchanged;
  34. ULONGLONG directoriesExamined;
  35. ULONGLONG directoriesChanged;
  36. ULONGLONG directoriesUnchanged;
  37. ULONGLONG sharesExamined;
  38. ULONGLONG sharesChanged;
  39. ULONGLONG sharesUnchanged;
  40. ULONGLONG membersExamined;
  41. ULONGLONG membersChanged;
  42. ULONGLONG membersUnchanged;
  43. ULONGLONG rightsExamined;
  44. ULONGLONG rightsChanged;
  45. ULONGLONG rightsUnchanged;
  46. };
  47. class TServerNode;
  48. BOOL // ret- TRUE if successful
  49. ReadResults(
  50. TServerNode * pServer, // in - pointer to server node containing server name
  51. WCHAR const * directory, // in - directory where results files are stored
  52. WCHAR const * filename, // in - filename for this agent's job
  53. DetailStats * pStats, // out- counts of items processed by the agent
  54. CString & plugInString, // out- description of results from plug-ins
  55. BOOL bSaveResults // in - flag, whether to call store results for plugins
  56. );
  57. void
  58. ProcessResults(
  59. TServerNode * pServer,
  60. WCHAR const * directory,
  61. WCHAR const * filename
  62. );
  63. #endif //__MONITOR_H__