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.0 KiB

  1. /*++
  2. Microsoft Confidential
  3. Copyright (c) 1992-1999 Microsoft Corporation
  4. All rights reserved
  5. Module Name:
  6. advanced.h
  7. Abstract:
  8. Public declarations for the Advanced tab of the System Control Panel
  9. Applet.
  10. Author:
  11. Scott Hallock (scotthal) 15-Oct-1997
  12. --*/
  13. #ifndef _SYSDM_ADVANCED_H_
  14. #define _SYSDM_ADVANCED_H_
  15. #pragma once
  16. #include "atlsnap.h"
  17. #include "resource.h"
  18. #include "..\Common\WbemPageHelper.h"
  19. //-----------------------------------------------------------------------------
  20. class AdvancedPage : public CSnapInPropertyPageImpl<AdvancedPage>,
  21. public WBEMPageHelper
  22. {
  23. private:
  24. BOOL HandleCommand(HWND hDlg,
  25. WPARAM wParam,
  26. LPARAM lParam);
  27. BOOL HandleNotify(HWND hDlg,
  28. WPARAM wParam,
  29. LPARAM lParam);
  30. public:
  31. AdvancedPage(WbemServiceThread *serviceThread,
  32. LONG_PTR lNotifyHandle,
  33. bool bDeleteHandle = false,
  34. TCHAR* pTitle = NULL);
  35. ~AdvancedPage();
  36. enum { IDD = IDD_ADVANCED };
  37. typedef CSnapInPropertyPageImpl<AdvancedPage> _baseClass;
  38. BEGIN_MSG_MAP(AdvancedPage)
  39. MESSAGE_HANDLER(WM_INITDIALOG, OnInit)
  40. MESSAGE_HANDLER(WM_ASYNC_CIMOM_CONNECTED, OnConnected)
  41. MESSAGE_HANDLER(WM_HELP, OnF1Help)
  42. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextHelp)
  43. COMMAND_HANDLER(IDC_ADV_PERF_BTN, BN_CLICKED, CommandHandler)
  44. COMMAND_HANDLER(IDC_ADV_ENV_BTN, BN_CLICKED, CommandHandler)
  45. COMMAND_HANDLER(IDC_ADV_RECOVERY_BTN, BN_CLICKED, CommandHandler)
  46. CHAIN_MSG_MAP(_baseClass)
  47. END_MSG_MAP()
  48. // Handler prototypes:
  49. LRESULT OnInit(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  50. LRESULT OnConnected(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  51. LRESULT OnF1Help(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  52. LRESULT OnContextHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  53. LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  54. BOOL OnApply();
  55. LONG_PTR m_lNotifyHandle;
  56. bool m_bDeleteHandle;
  57. };
  58. #endif // _SYSDM_ADVANCED_H_