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.

63 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: cookie.h
  7. //
  8. // Contents: CCertTmplCookie
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef __COOKIE_H_INCLUDED__
  12. #define __COOKIE_H_INCLUDED__
  13. extern HINSTANCE g_hInstanceSave; // Instance handle of the DLL (initialized
  14. //during CCertTmplComponent::Initialize)
  15. #include "nodetype.h"
  16. /////////////////////////////////////////////////////////////////////////////
  17. // cookie
  18. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  19. //references as template arguments.
  20. class CCertTmplCookie : public CCookie,
  21. public CBaseCookieBlock
  22. {
  23. public:
  24. CCertTmplCookie (CertTmplObjectType objecttype,
  25. PCWSTR objectName = 0);
  26. virtual ~CCertTmplCookie ();
  27. // returns <0, 0 or >0
  28. virtual HRESULT CompareSimilarCookies( CCookie* pOtherCookie, int* pnResult );
  29. // CBaseCookieBlock
  30. virtual CCookie* QueryBaseCookie(int i);
  31. virtual int QueryNumCookies();
  32. public:
  33. void SetManagedDomainDNSName (const CString& szManagedDomainDNSName);
  34. CString GetManagedDomainDNSName() const;
  35. virtual CString GetClass () { return L"";}
  36. LPRESULTDATA m_resultDataID;
  37. virtual void Refresh () {};
  38. virtual HRESULT Commit ();
  39. CString GetServiceName () const;
  40. void SetServiceName (CString &szManagedService);
  41. PCWSTR GetObjectName () const;
  42. const CertTmplObjectType m_objecttype;
  43. private:
  44. CString m_szManagedDomainDNSName;
  45. CString m_objectName;
  46. protected:
  47. void SetObjectName (const CString& strObjectName);
  48. };
  49. #endif // ~__COOKIE_H_INCLUDED__