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.

47 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: SaferStore.cpp
  7. //
  8. // Contents: Implementation of CSaferStore
  9. //
  10. //----------------------------------------------------------------------------
  11. #include "stdafx.h"
  12. #include <gpedit.h>
  13. #include "SaferStore.h"
  14. #include "PolicyKey.h"
  15. #ifdef _DEBUG
  16. #ifndef ALPHA
  17. #define new DEBUG_NEW
  18. #endif
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. CCertStoreSafer::CCertStoreSafer (
  23. DWORD dwFlags,
  24. LPCWSTR lpcszMachineName,
  25. LPCWSTR objectName,
  26. const CString & pcszLogStoreName,
  27. const CString & pcszPhysStoreName,
  28. IGPEInformation * pGPTInformation,
  29. const GUID& compDataGUID,
  30. IConsole* pConsole)
  31. : CCertStoreGPE (dwFlags, lpcszMachineName, objectName, pcszLogStoreName,
  32. pcszPhysStoreName, pGPTInformation, compDataGUID, pConsole),
  33. m_policyKey (pGPTInformation,
  34. L"", m_fIsComputerType)
  35. {
  36. }
  37. CCertStoreSafer::~CCertStoreSafer ()
  38. {
  39. }
  40. HKEY CCertStoreSafer::GetGroupPolicyKey ()
  41. {
  42. return m_policyKey.GetKey ();
  43. }