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.

57 lines
1.3 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998 - 1999
  5. //
  6. // File: certadmnp.h
  7. //
  8. // Contents: private certadm declarations
  9. //
  10. //---------------------------------------------------------------------------
  11. #define FLT_DBFILES 0
  12. #define FLT_LOGFILES 1
  13. #define FLT_DYNAMICFILES 2
  14. #define FLT_RESTOREDBLOCATIONS 3
  15. typedef struct _CSBACKUPCONTEXT
  16. {
  17. DWORD dwServerVersion;
  18. ICertAdminD2 *pICertAdminD;
  19. WCHAR const *pwszConfig;
  20. WCHAR const *pwszAuthority;
  21. DWORD RestoreFlags;
  22. BOOL fFileOpen;
  23. BYTE *pbReadBuffer;
  24. DWORD cbReadBuffer;
  25. BYTE *pbCache;
  26. DWORD cbCache;
  27. } CSBACKUPCONTEXT;
  28. HRESULT
  29. AllocateContext(
  30. IN WCHAR const *pwszConfig,
  31. OUT CSBACKUPCONTEXT **ppcsbc);
  32. VOID
  33. ReleaseContext(
  34. IN OUT CSBACKUPCONTEXT *pcsbc);
  35. HRESULT
  36. BackupRestoreGetFileList(
  37. IN DWORD FileListType,
  38. IN HCSBC hbc,
  39. OUT WCHAR **ppwszzFileList,
  40. OUT DWORD *pcbList);
  41. HRESULT
  42. OpenAdminServer(
  43. IN WCHAR const *pwszConfig,
  44. OUT WCHAR const **ppwszAuthority,
  45. OUT DWORD *pdwServerVersion,
  46. OUT ICertAdminD2 **ppICertAdminD);
  47. VOID
  48. CloseAdminServer(
  49. IN OUT ICertAdminD2 **ppICertAdminD);