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.

139 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. cp.h
  5. Abstract:
  6. Public data structures and procedure prototypes for the
  7. Checkpoint Manager (CP) subcomponent of the NT Cluster Service
  8. Author:
  9. John Vert (jvert) 1/14/1997
  10. Revision History:
  11. --*/
  12. //
  13. // Define public structures and types
  14. //
  15. //
  16. // Define public interfaces
  17. //
  18. DWORD
  19. CpInitialize(
  20. VOID
  21. );
  22. DWORD
  23. CpShutdown(
  24. VOID
  25. );
  26. DWORD
  27. CpCopyCheckpointFiles(
  28. IN LPCWSTR lpszPathName,
  29. IN BOOL IsFileChangeAttribute
  30. );
  31. DWORD
  32. CpCompleteQuorumChange(
  33. IN LPCWSTR lpszOldQuorumPath
  34. );
  35. DWORD
  36. CpSaveDataFile(
  37. IN PFM_RESOURCE Resource,
  38. IN DWORD dwCheckpointId,
  39. IN LPCWSTR lpszFileName,
  40. IN BOOLEAN fCryptoCheckpoint
  41. );
  42. DWORD
  43. CpGetDataFile(
  44. IN PFM_RESOURCE Resource,
  45. IN DWORD dwCheckpointId,
  46. IN LPCWSTR lpszFileName,
  47. IN BOOLEAN fCryptoCheckpoint
  48. );
  49. //
  50. // Interface for adding and removing registry checkpoints
  51. //
  52. DWORD
  53. CpAddRegistryCheckpoint(
  54. IN PFM_RESOURCE Resource,
  55. IN LPCWSTR KeyName
  56. );
  57. DWORD
  58. CpDeleteRegistryCheckpoint(
  59. IN PFM_RESOURCE Resource,
  60. IN LPCWSTR KeyName
  61. );
  62. DWORD
  63. CpGetRegistryCheckpoints(
  64. IN PFM_RESOURCE Resource,
  65. OUT PUCHAR OutBuffer,
  66. IN DWORD OutBufferSize,
  67. OUT LPDWORD BytesReturned,
  68. OUT LPDWORD Required
  69. );
  70. DWORD
  71. CpRemoveResourceCheckpoints(
  72. IN PFM_RESOURCE Resource
  73. );
  74. DWORD
  75. CpckRemoveResourceCheckpoints(
  76. IN PFM_RESOURCE Resource
  77. );
  78. DWORD
  79. CpDeleteCheckpointFile(
  80. IN PFM_RESOURCE Resource,
  81. IN DWORD dwCheckpointId,
  82. IN OPTIONAL LPCWSTR lpszQuorumPath
  83. );
  84. DWORD CpRestoreCheckpointFiles(
  85. IN LPWSTR lpszSourcePathName,
  86. IN LPWSTR lpszSubDirName,
  87. IN LPCWSTR lpszQuoLogPathName
  88. );
  89. //
  90. // Interface for adding and removing crypto checkpoints
  91. //
  92. DWORD
  93. CpckAddCryptoCheckpoint(
  94. IN PFM_RESOURCE Resource,
  95. IN PVOID InBuffer,
  96. IN DWORD InBufferSize
  97. );
  98. DWORD
  99. CpckDeleteCryptoCheckpoint(
  100. IN PFM_RESOURCE Resource,
  101. IN PVOID InBuffer,
  102. IN DWORD InBufferSize
  103. );
  104. DWORD
  105. CpckGetCryptoCheckpoints(
  106. IN PFM_RESOURCE Resource,
  107. OUT PUCHAR OutBuffer,
  108. IN DWORD OutBufferSize,
  109. OUT LPDWORD BytesReturned,
  110. OUT LPDWORD Required
  111. );