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.

151 lines
3.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: recpag1.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _RECPAG1_H
  11. #define _RECPAG1_H
  12. ////////////////////////////////////////////////////////////////////////////
  13. // CDNS_Unk_RecordPropertyPage
  14. class CDNS_Unk_RecordPropertyPage : public CDNSRecordStandardPropertyPage
  15. {
  16. public:
  17. CDNS_Unk_RecordPropertyPage();
  18. protected:
  19. virtual void SetUIData();
  20. virtual BOOL OnInitDialog();
  21. private:
  22. CFont m_font; // for the editbox
  23. CEdit* GetEditBox() { return (CEdit*)GetDlgItem(IDC_DATA_EDIT);}
  24. void LoadHexDisplay();
  25. };
  26. ////////////////////////////////////////////////////////////////////////////
  27. // CDNS_TXT_RecordPropertyPage
  28. class CDNS_TXT_RecordPropertyPage : public CDNSRecordStandardPropertyPage
  29. {
  30. public:
  31. CDNS_TXT_RecordPropertyPage();
  32. protected:
  33. virtual void SetUIData();
  34. virtual DNS_STATUS GetUIDataEx(BOOL bSilent = TRUE);
  35. afx_msg void OnTextEditBoxChange();
  36. private:
  37. CEdit* GetTextEditBox() { return (CEdit*)GetDlgItem(IDC_RR_TXT_EDIT);}
  38. void SetEditBoxValue(CStringArray& sArr, int nSize);
  39. void GetEditBoxValue(CStringArray& sArr, int* pNSize);
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. ////////////////////////////////////////////////////////////////////////////
  43. // CDNS_SIG_RecordPropertyPage
  44. class CDNS_SIG_RecordPropertyPage : public CDNSRecordStandardPropertyPage
  45. {
  46. public:
  47. CDNS_SIG_RecordPropertyPage();
  48. protected:
  49. virtual void SetUIData();
  50. virtual DNS_STATUS GetUIDataEx(BOOL bSilent = TRUE);
  51. virtual BOOL OnInitDialog();
  52. void SelectTypeCoveredByType(WORD wType);
  53. afx_msg void OnDateTimeChange(NMHDR* pNotifyStruct, LRESULT* result);
  54. afx_msg void OnSigEditChange();
  55. afx_msg void OnComboChange();
  56. void ShowSigValue(PBYTE pByte, DWORD dwCount);
  57. void ConvertUIKeyStringToByteArray(BYTE* pByte, DWORD* pdwLength);
  58. CDNSTTLControl* GetOrigTTL() { return (CDNSTTLControl*)GetDlgItem(IDC_ORIG_TTL); }
  59. private:
  60. WORD m_wTypeCovered; // DNS_TYPE_<x>
  61. BYTE m_chAlgorithm; // 0,255 unsigned int
  62. BYTE m_chLabels; // 0,255 unsigned int (count)
  63. DWORD m_dwOriginalTtl;
  64. DWORD m_dwExpiration; // time in sec. from 1 Jan 1970
  65. DWORD m_dwTimeSigned; // time in sec. from 1 Jan 1970
  66. WORD m_wKeyTag; // algorithm dependent
  67. CString m_szSignerName;
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. ////////////////////////////////////////////////////////////////////////////
  71. // CDNS_KEY_RecordPropertyPage
  72. class CDNS_KEY_Record;
  73. class CDNS_KEY_RecordPropertyPage : public CDNSRecordStandardPropertyPage
  74. {
  75. public:
  76. CDNS_KEY_RecordPropertyPage();
  77. protected:
  78. virtual BOOL OnInitDialog();
  79. virtual void SetUIData();
  80. virtual DNS_STATUS GetUIDataEx(BOOL bSilent = TRUE);
  81. void ShowBitField(WORD wFlags);
  82. void ShowKeyType(WORD wFlags);
  83. void ShowNameType(WORD wFlags);
  84. void ShowSignatory(WORD wFlags);
  85. void ShowKeyValue(PBYTE pByte, DWORD dwCount);
  86. afx_msg void OnEditChange();
  87. afx_msg void OnKeyTypeChange();
  88. afx_msg void OnNameTypeChange();
  89. afx_msg void OnSignatoryChange();
  90. afx_msg void OnProtocolChange();
  91. afx_msg void OnAlgorithmChange();
  92. private:
  93. BYTE m_chProtocol;
  94. BYTE m_chAlgorithm;
  95. WORD m_wFlags;
  96. CCheckListBox m_SignatoryCheckListBox;
  97. DECLARE_MESSAGE_MAP()
  98. };
  99. ////////////////////////////////////////////////////////////////////////////
  100. // CDNS_NXT_RecordPropertyPage
  101. class CDNS_NXT_RecordPropertyPage : public CDNSRecordStandardPropertyPage
  102. {
  103. public:
  104. CDNS_NXT_RecordPropertyPage();
  105. protected:
  106. virtual void SetUIData();
  107. virtual DNS_STATUS GetUIDataEx(BOOL bSilent = TRUE);
  108. virtual BOOL OnInitDialog();
  109. afx_msg void OnNextDomainEdit();
  110. afx_msg void OnTypeCoveredChange();
  111. void SetTypeCheckForDNSType(WORD wType);
  112. private:
  113. CCheckListBox m_TypeCheckListBox;
  114. DECLARE_MESSAGE_MAP()
  115. };
  116. #endif // _RECPAG1_H