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.

52 lines
1.3 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef __PERFPAGE__
  3. #define __PERFPAGE__
  4. #pragma once
  5. #include "..\Common\WbemPageHelper.h"
  6. #include "VirtualMemDlg.h"
  7. //-----------------------------------------------------------------------------
  8. // Reboot switch for crashdump dlg
  9. #define RET_ERROR (-1)
  10. #define RET_NO_CHANGE 0x00
  11. #define RET_VIRTUAL_CHANGE 0x01
  12. #define RET_RECOVER_CHANGE 0x02
  13. #define RET_CHANGE_NO_REBOOT 0x04
  14. #define RET_CONTINUE 0x08
  15. #define RET_BREAK 0x10
  16. #define RET_VIRT_AND_RECOVER (RET_VIRTUAL_CHANGE | RET_RECOVER_CHANGE)
  17. class PerfPage : public WBEMPageHelper
  18. {
  19. private:
  20. VirtualMemDlg *m_VDlg;
  21. CWbemClassObject m_os;
  22. // the current values.
  23. long m_appBoost;
  24. long m_quantType;
  25. long m_quantLength;
  26. DWORD m_dwPrevCacheOption;
  27. DWORD m_dwCurCacheOption;
  28. // before and after states of the radio buttons.
  29. bool m_wasWorkstation;
  30. bool m_nowWorkstation;
  31. void Init(void);
  32. public:
  33. PerfPage(WbemServiceThread *serviceThread);
  34. ~PerfPage();
  35. INT_PTR DoModal(HWND hDlg);
  36. INT_PTR CALLBACK DlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  37. };
  38. INT_PTR CALLBACK StaticPerfDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  39. #endif __PERFPAGE__