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.

73 lines
1.7 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: CfgPort.h $
  4. *
  5. * Copyright (C) 1997 Hewlett-Packard Company.
  6. * Copyright (c) 1997 Microsoft Corporation.
  7. * All rights reserved.
  8. *
  9. * 11311 Chinden Blvd.
  10. * Boise, Idaho 83714
  11. *
  12. *****************************************************************************/
  13. #ifndef INC_CONFIG_PORT_H
  14. #define INC_CONFIG_PORT_H
  15. // Global Variables
  16. extern HINSTANCE g_hInstance;
  17. class CConfigPortDlg
  18. {
  19. public:
  20. CConfigPortDlg();
  21. ~CConfigPortDlg();
  22. public:
  23. BOOL OnInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam);
  24. BOOL OnCommand(HWND hDlg, WPARAM wParam, LPARAM lParam);
  25. BOOL OnNotify(HWND hDlg, WPARAM wParam, LPARAM lParam);
  26. protected:
  27. void CheckProtocolAndEnable(HWND hDlg, int idButton);
  28. void CheckSNMPAndEnable(HWND hDlg, BOOL Check);
  29. void OnOk(HWND hDlg);
  30. void SaveSettings(HWND hDlg);
  31. BOOL OnButtonClicked(HWND hDlg, WPARAM wParam, LPARAM);
  32. void OnSetActive(HWND hDlg);
  33. BOOL OnEnUpdate(HWND hDlg, WPARAM wParam, LPARAM lParam);
  34. void HostAddressOk(HWND hDlg);
  35. void PortNumberOk(HWND hDlg);
  36. void QueueNameOk(HWND hDlg);
  37. void CommunityNameOk(HWND hDlg);
  38. void DeviceIndexOk(HWND hDlg);
  39. DWORD RemoteTellPortMonToModifyThePort();
  40. DWORD LocalTellPortMonToModifyThePort();
  41. private:
  42. CFG_PARAM_PACKAGE *m_pParams;
  43. CInputChecker m_InputChkr;
  44. BOOL m_bDontAllowThisPageToBeDeactivated;
  45. }; // CConfigPortDlg
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49. // Dialogs
  50. INT_PTR CALLBACK ConfigurePortPage(
  51. HWND hDlg,
  52. UINT message,
  53. WPARAM wParam,
  54. LPARAM lParam);
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif // INC_CONFIG_PORT_H