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.

252 lines
5.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: wiz.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __WIZ_H_
  11. #define __WIZ_H_
  12. #include "stdafx.h"
  13. #include "csw97sht.h"
  14. #include "csw97ppg.h"
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CNewCertTypeWelcome dialog
  17. class CNewCertTypeWelcome : public CWizard97PropertyPage
  18. {
  19. enum { IDD = IDD_NEWCERTTYPE_WELCOME };
  20. // Construction
  21. public:
  22. CNewCertTypeWelcome();
  23. ~CNewCertTypeWelcome();
  24. // Dialog Data
  25. // Overrides
  26. public:
  27. LRESULT OnWizardNext();
  28. BOOL OnSetActive();
  29. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  30. // Implementation
  31. protected:
  32. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  33. BOOL OnInitDialog();
  34. public:
  35. PWIZARD_HELPER m_pwizHelp;
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CNewCertTypeBaseType dialog
  39. class CNewCertTypeBaseType : public CWizard97PropertyPage
  40. {
  41. // Construction
  42. public:
  43. CNewCertTypeBaseType();
  44. ~CNewCertTypeBaseType();
  45. // Dialog Data
  46. enum { IDD = IDD_NEWCERTTYPE_TYPE };
  47. // Overrides
  48. public:
  49. LRESULT OnWizardBack();
  50. LRESULT OnWizardNext();
  51. BOOL OnSetActive();
  52. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  53. // Implementation
  54. protected:
  55. BOOL OnInitDialog();
  56. void OnSelChange(NMHDR * pNotifyStruct);
  57. void OnDestroy();
  58. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  59. BOOL OnNotify(UINT idCtrl, NMHDR* pnmh);
  60. public:
  61. HCERTTYPE m_hSelectedCertType;
  62. HCERTTYPE m_hLastSelectedCertType;
  63. PWIZARD_HELPER m_pwizHelp;
  64. int m_selectedIndex;
  65. HWND m_hBaseCertTypeList;
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CNewCertTypeBasicInformation dialog
  69. class CNewCertTypeBasicInformation : public CWizard97PropertyPage
  70. {
  71. DECLARE_DYNCREATE(CNewCertTypeBasicInformation)
  72. // Construction
  73. public:
  74. CNewCertTypeBasicInformation();
  75. ~CNewCertTypeBasicInformation();
  76. void UpdateWizHelp();
  77. BOOL OIDAlreadyExist(LPSTR pszNewOID);
  78. void InitializeOIDList();
  79. // Dialog Data
  80. enum { IDD = IDD_NEWCERTTYPE_INFORMATION };
  81. // Overrides
  82. public:
  83. LRESULT OnWizardBack();
  84. LRESULT OnWizardNext();
  85. BOOL OnSetActive();
  86. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  87. // Implementation
  88. protected:
  89. BOOL OnInitDialog();
  90. void OnNewPurposeButton();
  91. void OnDestroy();
  92. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  93. public:
  94. void AddEnumedEKU(PCCRYPT_OID_INFO pInfo);
  95. PWIZARD_HELPER m_pwizHelp;
  96. HWND m_hPurposeList;
  97. HWND m_hButtonCAFillIn;
  98. HWND m_hButtonCritical;
  99. HWND m_hButtonIncludeEmail;
  100. HWND m_hButtonAllowAutoEnroll;
  101. HWND m_hButtonAdvanced;
  102. };
  103. /////////////////////////////////////////////////////////////////////////////
  104. // CNewCertTypeKeyUsage dialog
  105. class CNewCertTypeKeyUsage : public CWizard97PropertyPage
  106. {
  107. // Construction
  108. public:
  109. CNewCertTypeKeyUsage();
  110. ~CNewCertTypeKeyUsage();
  111. void UpdateWizHelp();
  112. // Dialog Data
  113. enum { IDD = IDD_NEWCERTTYPE_KEY_USAGE };
  114. // Overrides
  115. public:
  116. LRESULT OnWizardBack();
  117. LRESULT OnWizardNext();
  118. BOOL OnSetActive();
  119. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  120. // Implementation
  121. protected:
  122. BOOL OnInitDialog();
  123. void OnDestroy();
  124. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  125. public:
  126. PWIZARD_HELPER m_pwizHelp;
  127. HWND m_hButtonDataEncryption;
  128. HWND m_hButtonDecipherOnly;
  129. HWND m_hButtonDigitalSignature;
  130. HWND m_hButtonEncipherOnly;
  131. HWND m_hButtonKeyAgreement;
  132. HWND m_hButtonKeyEncryption;
  133. HWND m_hButtonKeyUsageCritical;
  134. HWND m_hButtonPrevent;
  135. };
  136. /////////////////////////////////////////////////////////////////////////////
  137. // CNewCertTypeCACertificate dialog
  138. class CNewCertTypeCACertificate : public CWizard97PropertyPage
  139. {
  140. // Construction
  141. public:
  142. CNewCertTypeCACertificate();
  143. ~CNewCertTypeCACertificate();
  144. void UpdateWizHelp();
  145. // Dialog Data
  146. enum { IDD = IDD_NEWCERTTYPE_CA_CERTIFICATE };
  147. // Overrides
  148. public:
  149. LRESULT OnWizardBack();
  150. LRESULT OnWizardNext();
  151. BOOL OnSetActive();
  152. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  153. // Implementation
  154. protected:
  155. BOOL OnInitDialog();
  156. void OnDestroy();
  157. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  158. public:
  159. PWIZARD_HELPER m_pwizHelp;
  160. HWND m_hButtonVerifySignature;
  161. HWND m_hButtonIssueCRL;
  162. };
  163. /////////////////////////////////////////////////////////////////////////////
  164. // CNewCertTypeCompletion dialog
  165. class CNewCertTypeCompletion : public CWizard97PropertyPage
  166. {
  167. // Construction
  168. public:
  169. CNewCertTypeCompletion();
  170. ~CNewCertTypeCompletion();
  171. void SetItemTextWrapper(UINT nID, int *piItem, BOOL fDoInsert, BOOL *pfFirstUsageItem);
  172. void AddResultsToSummaryList();
  173. // Dialog Data
  174. enum { IDD = IDD_NEWCERTTYPE_COMPLETION };
  175. HWND m_hSummaryList;
  176. // Overrides
  177. public:
  178. BOOL OnWizardFinish();
  179. LRESULT OnWizardBack();
  180. BOOL OnSetActive();
  181. BOOL UpdateData(BOOL fSuckFromDialog=TRUE);
  182. // Implementation
  183. protected:
  184. BOOL OnInitDialog();
  185. BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  186. public:
  187. PWIZARD_HELPER m_pwizHelp;
  188. };
  189. HCERTTYPE InvokeCertTypeWizard(HCERTTYPE hEditCertType, HWND hwndConsole);
  190. #endif //__WIZ_H_