Leaked source code of windows server 2003
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, 1996 - 1999
  5. //
  6. // File: restore.h
  7. //
  8. // Contents: Cert Server Database interface implementation
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "resource.h" // main symbols
  12. class CCertDBRestore:
  13. public ICertDBRestore,
  14. public ISupportErrorInfo,
  15. public CComObjectRoot,
  16. public CComCoClass<CCertDBRestore, &CLSID_CCertDBRestore>
  17. {
  18. public:
  19. CCertDBRestore();
  20. ~CCertDBRestore();
  21. BEGIN_COM_MAP(CCertDBRestore)
  22. COM_INTERFACE_ENTRY(ICertDBRestore)
  23. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  24. END_COM_MAP()
  25. DECLARE_NOT_AGGREGATABLE(CCertDBRestore)
  26. // Remove the comment from the line above if you don't want your object to
  27. // support aggregation. The default is to support it
  28. DECLARE_REGISTRY(
  29. CCertDBRestore,
  30. wszCLASS_CERTDBRESTORE TEXT(".1"),
  31. wszCLASS_CERTDBRESTORE,
  32. IDS_CERTDBRESTORE_DESC,
  33. THREADFLAGS_BOTH)
  34. // ISupportsErrorInfo
  35. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  36. // ICertDBRestore
  37. public:
  38. STDMETHOD(RecoverAfterRestore)(
  39. /* [in] */ DWORD cSession,
  40. /* [in] */ DWORD DBFlags,
  41. /* [in] */ WCHAR const *pwszEventSource,
  42. /* [in] */ WCHAR const *pwszLogDir,
  43. /* [in] */ WCHAR const *pwszSystemDir,
  44. /* [in] */ WCHAR const *pwszTempDir,
  45. /* [in] */ WCHAR const *pwszCheckPointFile,
  46. /* [in] */ WCHAR const *pwszLogPath,
  47. /* [in] */ CSEDB_RSTMAPW rgrstmap[],
  48. /* [in] */ LONG crstmap,
  49. /* [in] */ WCHAR const *pwszBackupLogPath,
  50. /* [in] */ DWORD genLow,
  51. /* [in] */ DWORD genHigh);
  52. private:
  53. VOID _Cleanup();
  54. };