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.

85 lines
2.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: TemplateV2SubjectNamePropertyPage.h
  7. //
  8. // Contents: Definition of CTemplateV2SubjectNamePropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_TEMPLATEV2SUBJECTNAMEPROPERTYPAGE_H__4EC37055_348A_462A_A177_286A2B0AF3F4__INCLUDED_)
  12. #define AFX_TEMPLATEV2SUBJECTNAMEPROPERTYPAGE_H__4EC37055_348A_462A_A177_286A2B0AF3F4__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // TemplateV2SubjectNamePropertyPage.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CTemplateV2SubjectNamePropertyPage dialog
  21. class CTemplateV2SubjectNamePropertyPage : public CHelpPropertyPage
  22. {
  23. // Construction
  24. public:
  25. CTemplateV2SubjectNamePropertyPage(
  26. CCertTemplate& rCertTemplate,
  27. bool& rbIsDirty,
  28. bool bIsComputerOrDC = false);
  29. ~CTemplateV2SubjectNamePropertyPage();
  30. // Dialog Data
  31. //{{AFX_DATA(CTemplateV2SubjectNamePropertyPage)
  32. enum { IDD = IDD_TEMPLATE_V2_SUBJECT_NAME };
  33. CComboBox m_nameCombo;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CTemplateV2SubjectNamePropertyPage)
  38. public:
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. void SetSettingsForNameTypeNone ();
  45. virtual void DoContextHelp (HWND hWndControl);
  46. bool CanUncheckLastSetting (int ctrlID);
  47. virtual BOOL OnInitDialog();
  48. void EnableControls ();
  49. // Generated message map functions
  50. //{{AFX_MSG(CTemplateV2SubjectNamePropertyPage)
  51. afx_msg void OnSubjectAndSubjectAltName();
  52. afx_msg void OnSelchangeSubjectNameNameCombo();
  53. afx_msg void OnSubjectNameBuiltByCa();
  54. afx_msg void OnSubjectNameSuppliedInRequest();
  55. afx_msg void OnDnsName();
  56. afx_msg void OnEmailInAlt();
  57. afx_msg void OnEmailInSub();
  58. afx_msg void OnSpn();
  59. afx_msg void OnUpn();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. enum {
  63. NAME_TYPE_NONE = 0,
  64. NAME_TYPE_FULL_DN,
  65. NAME_TYPE_CN_ONLY
  66. };
  67. private:
  68. bool& m_rbIsDirty;
  69. CCertTemplate& m_rCertTemplate;
  70. bool m_bIsComputerOrDC;
  71. };
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74. #endif // !defined(AFX_TEMPLATEV2SUBJECTNAMEPROPERTYPAGE_H__4EC37055_348A_462A_A177_286A2B0AF3F4__INCLUDED_)