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.

79 lines
2.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: KeyUsageDlg.h
  7. //
  8. // Contents: Definition of CKeyUsageDlg
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_KEYUSAGEDLG_H__18ABC4AB_A46B_46A9_B1BA_888CE7C5C782__INCLUDED_)
  12. #define AFX_KEYUSAGEDKG_H__18ABC4AB_A46B_46A9_B1BA_888CE7C5C782__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // KeyUsageDlg.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CKeyUsageDlg dialog
  21. class CKeyUsageDlg : public CHelpDialog
  22. {
  23. // Construction
  24. public:
  25. CKeyUsageDlg(CWnd* pParent, CCertTemplate& rCertTemplate, PCERT_EXTENSION pCertExtension);
  26. ~CKeyUsageDlg();
  27. // Dialog Data
  28. //{{AFX_DATA(CKeyUsageDlg)
  29. enum { IDD = IDD_KEY_USAGE };
  30. // NOTE - ClassWizard will add data members here.
  31. // DO NOT EDIT what you see in these blocks of generated code !
  32. //}}AFX_DATA
  33. // Overrides
  34. // ClassWizard generate virtual function overrides
  35. //{{AFX_VIRTUAL(CKeyUsageDlg)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. virtual void DoContextHelp (HWND hWndControl);
  42. void EnableControls ();
  43. // Generated message map functions
  44. //{{AFX_MSG(CKeyUsageDlg)
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnCheckCertSigning();
  47. afx_msg void OnCheckDataEncipherment();
  48. afx_msg void OnCheckDigitalSignature();
  49. afx_msg void OnCheckKeyAgreement();
  50. afx_msg void OnCheckKeyEncipherment();
  51. afx_msg void OnCheckNonRepudiation();
  52. afx_msg void OnCrlSigning();
  53. afx_msg void OnKeyUsageCritical();
  54. virtual void OnOK();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. private:
  58. afx_msg LRESULT OnInitializationComplete (WPARAM, LPARAM);
  59. bool m_bInitializationComplete;
  60. DWORD m_cbKeyUsage;
  61. CRYPT_BIT_BLOB* m_pKeyUsage;
  62. bool m_bModified;
  63. CCertTemplate& m_rCertTemplate;
  64. PCERT_EXTENSION m_pCertExtension;
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_TEMPLATEKEYUSAGEDLG_H__18ABC4AB_A46B_46A9_B1BA_888CE7C5C782__INCLUDED_)