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.

62 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: causages.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // CAUsages.h: interface for the CCAUsages class.
  11. //
  12. //////////////////////////////////////////////////////////////////////
  13. #if !defined(AFX_CAUSAGES_H__1E54779E_5C56_11D1_931E_00C04FB93209__INCLUDED_)
  14. #define AFX_CAUSAGES_H__1E54779E_5C56_11D1_931E_00C04FB93209__INCLUDED_
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. class CCAUsages
  19. {
  20. public:
  21. HRESULT Import(BSTR bstr);
  22. BSTR Export();
  23. CCAUsages();
  24. virtual ~CCAUsages();
  25. operator PSECURITY_DESCRIPTOR ()
  26. {
  27. return m_pSD;
  28. }
  29. operator CERT_ENHKEY_USAGE *()
  30. {
  31. return &m_sEnhKeyUsage;
  32. }
  33. operator WCHAR *()
  34. {
  35. return m_bstrCertType;
  36. }
  37. HRESULT SetSD(PSECURITY_DESCRIPTOR pSD);
  38. HRESULT SetEnhKeyUsage(CERT_ENHKEY_USAGE *pEnhKey);
  39. HRESULT SetCertType(WCHAR *m_wszCertType);
  40. protected:
  41. CERT_ENHKEY_USAGE m_sEnhKeyUsage;
  42. BSTR m_bstrCertType;
  43. PSECURITY_DESCRIPTOR m_pSD;
  44. };
  45. #endif // !defined(AFX_CAUSAGES_H__1E54779E_5C56_11D1_931E_00C04FB93209__INCLUDED_)