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.

97 lines
2.5 KiB

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: epoptppg.h
  7. //
  8. // Contents: Defines the classes CRpcOptionsPropertyPage,
  9. // which manages the RPC endpoint options per AppId.
  10. //
  11. // Classes:
  12. //
  13. // Methods:
  14. //
  15. // History: 02-Dec-96 Ronans Created.
  16. //
  17. //----------------------------------------------------------------------
  18. #ifndef __EPOPTPPG_H__
  19. #define __EPOPTPPG_H__
  20. class CEndpointData;
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CRpcOptionsPropertyPage dialog
  23. class CRpcOptionsPropertyPage : public CPropertyPage
  24. {
  25. DECLARE_DYNCREATE(CRpcOptionsPropertyPage)
  26. // Construction
  27. public:
  28. CRpcOptionsPropertyPage();
  29. ~CRpcOptionsPropertyPage();
  30. BOOL CancelChanges();
  31. BOOL UpdateChanges(HKEY hkAppID);
  32. BOOL ValidateChanges();
  33. void UpdateSelection();
  34. void AddEndpoint(CEndpointData* pED);
  35. void RefreshEPList();
  36. void ClearProtocols();
  37. BOOL m_bCanModify;
  38. BOOL Validate();
  39. void InitData(CString AppName, HKEY hkAppID);
  40. CString GetProtseq();
  41. CString GetEndpoint();
  42. CString GetDynamicOptions();
  43. int m_nProtocolIndex; // index into protocol array
  44. // Dialog Data
  45. //{{AFX_DATA(CRpcOptionsPropertyPage)
  46. enum { IDD = IDD_RPCOPTIONS };
  47. CListCtrl m_lstProtseqs;
  48. CButton m_btnUpdate;
  49. CButton m_btnRemove;
  50. CButton m_btnClear;
  51. CButton m_btnAdd;
  52. //}}AFX_DATA
  53. // Overrides
  54. // ClassWizard generate virtual function overrides
  55. //{{AFX_VIRTUAL(CRpcOptionsPropertyPage)
  56. public:
  57. virtual BOOL OnSetActive();
  58. virtual BOOL OnKillActive();
  59. protected:
  60. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. CEndpointData* m_epSysDefault;
  65. CImageList m_imgNetwork;
  66. CObList m_colProtseqs; // collection of protseq objects
  67. BOOL m_bChanged; // flag to indicate if data changed
  68. // Generated message map functions
  69. //{{AFX_MSG(CRpcOptionsPropertyPage)
  70. virtual BOOL OnInitDialog();
  71. afx_msg void OnClearEndpoints();
  72. afx_msg void OnRemoveEndpoint();
  73. afx_msg void OnUpdateEndpoint();
  74. afx_msg void OnAddEndpoint();
  75. afx_msg void OnSelectProtseq(NMHDR* pNMHDR, LRESULT* pResult);
  76. afx_msg void OnSetFocus(CWnd* pOldWnd);
  77. afx_msg void OnKillFocus(CWnd* pNewWnd);
  78. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  79. afx_msg void OnPropertiesProtseq(NMHDR* pNMHDR, LRESULT* pResult);
  80. //}}AFX_MSG
  81. DECLARE_MESSAGE_MAP()
  82. private:
  83. int m_nSelected;
  84. };
  85. #endif