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.

152 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. initp.h
  5. Abstract:
  6. Private header file for the initialization component of the
  7. NT Cluster Service
  8. Author:
  9. John Vert (jvert) 6/5/1996
  10. Revision History:
  11. --*/
  12. #include "service.h"
  13. #include "stdio.h"
  14. #include "stdlib.h"
  15. #include "wchar.h"
  16. #include "api_rpc.h"
  17. #define LOG_CURRENT_MODULE LOG_MODULE_INIT
  18. #define CS_CONCURRENT_RPC_CALLS 16
  19. DWORD
  20. ClusterInitialize(
  21. VOID
  22. );
  23. VOID
  24. ClusterShutdown(
  25. DWORD ExitCode
  26. );
  27. DWORD
  28. ClusterForm(
  29. VOID
  30. );
  31. DWORD
  32. ClusterJoin(
  33. VOID
  34. );
  35. VOID
  36. ClusterLeave(
  37. VOID
  38. );
  39. RPC_STATUS
  40. ClusterInitializeRpcServer(
  41. VOID
  42. );
  43. DWORD
  44. ClusterRegisterExtroclusterRpcInterface(
  45. VOID
  46. );
  47. DWORD
  48. ClusterRegisterJoinVersionRpcInterface(
  49. VOID
  50. );
  51. VOID
  52. ClusterDeregisterRpcInterfaces(
  53. VOID
  54. );
  55. VOID
  56. ClusterShutdownRpcServer(
  57. VOID
  58. );
  59. DWORD
  60. CspSetErrorCode(
  61. IN DWORD ErrorCode,
  62. OUT LPSERVICE_STATUS ServiceStatus
  63. );
  64. VOID
  65. GenerateExceptionReport(
  66. IN PEXCEPTION_POINTERS pExceptionInfo
  67. );
  68. //
  69. // Restore database related functions
  70. //
  71. DWORD
  72. RdbStopSvcOnNodes(
  73. IN PNM_NODE_ENUM2 pNodeEnum,
  74. IN LPCWSTR lpszServiceName
  75. );
  76. VOID
  77. RdbGetRestoreDbParams(
  78. IN HKEY hClusSvcKey
  79. );
  80. BOOL
  81. RdbFixupQuorumDiskSignature(
  82. IN DWORD dwSignature
  83. );
  84. DWORD
  85. RdbpOpenDiskDevice(
  86. IN LPCWSTR lpDriveLetter,
  87. OUT PHANDLE pFileHandle
  88. );
  89. DWORD
  90. RdbpCompareAndWriteSignatureToDisk(
  91. IN HANDLE hFile,
  92. IN DWORD dwSignature
  93. );
  94. DWORD
  95. RdbStartSvcOnNodes(
  96. IN LPCWSTR lpszServiceName
  97. );
  98. DWORD
  99. RdbInitialize(
  100. VOID
  101. );
  102. DWORD
  103. RdbpUnloadClusterHive(
  104. VOID
  105. );
  106. DWORD
  107. RdbpDeleteRestoreDbParams(
  108. VOID
  109. );
  110. //
  111. // Private Constants
  112. //
  113. #define CS_MAX_DELAYED_WORK_THREADS 5
  114. #define CS_MAX_CRITICAL_WORK_THREADS 1 // The critical queue is serialized
  115. #define MIN_WORKING_SET_SIZE (1*1024*1024)
  116. #define MAX_WORKING_SET_SIZE (2*MIN_WORKING_SET_SIZE)
  117. extern BOOLEAN bFormCluster;