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.

67 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: M S C L I D L G . H
  7. //
  8. // Contents: Dialog box handling for the MSCLient object.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 28 Feb 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef _MSCLIDLG_H
  16. #define _MSCLIDLG_H
  17. #pragma once
  18. #include "mscliobj.h"
  19. //
  20. // RPC Configuration Dialog
  21. //
  22. class CRPCConfigDlg: public CPropSheetPage
  23. {
  24. public:
  25. BEGIN_MSG_MAP(CRPCConfigDlg)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  27. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  28. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu);
  29. MESSAGE_HANDLER(WM_HELP, OnHelp);
  30. COMMAND_CODE_HANDLER(CBN_SELCHANGE, OnChange)
  31. COMMAND_CODE_HANDLER(EN_CHANGE, OnChange)
  32. NOTIFY_CODE_HANDLER(PSN_APPLY, OnOk)
  33. NOTIFY_CODE_HANDLER(PSN_KILLACTIVE, OnKillActive)
  34. END_MSG_MAP()
  35. CRPCConfigDlg(CMSClient *pmsc): m_pmsc(pmsc), m_isel(-1) {};
  36. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam,
  37. LPARAM lParam, BOOL& bHandled);
  38. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& Handled);
  39. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  40. LRESULT OnDestroy(UINT uMsg, WPARAM wParam,
  41. LPARAM lParam, BOOL& bHandled);
  42. LRESULT OnOk(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  43. LRESULT OnKillActive(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  44. LRESULT OnChange(WORD wNotifyCode, WORD wID,
  45. HWND hWndCtl, BOOL& bHandled)
  46. {
  47. SetState();
  48. SetChangedFlag();
  49. return 0;
  50. };
  51. private:
  52. HRESULT HrGetDCEProvider(VOID);
  53. HRESULT HrOpenRegKeys(VOID);
  54. HRESULT HrValidateRpcData(VOID);
  55. VOID SetState(VOID);
  56. INT m_isel;
  57. CMSClient * m_pmsc;
  58. };
  59. BOOL FIsValidDomainName(PCWSTR szName);
  60. #endif //!_MSCLIDLG_H