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.

163 lines
2.3 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. #define CS_DMP_FILE_NAME L"\\clussvc.dmp"
  20. DWORD
  21. ClusterInitialize(
  22. VOID
  23. );
  24. VOID
  25. ClusterShutdown(
  26. DWORD ExitCode
  27. );
  28. DWORD
  29. ClusterForm(
  30. VOID
  31. );
  32. DWORD
  33. ClusterJoin(
  34. VOID
  35. );
  36. VOID
  37. ClusterLeave(
  38. VOID
  39. );
  40. RPC_STATUS
  41. ClusterInitializeRpcServer(
  42. VOID
  43. );
  44. DWORD
  45. ClusterRegisterExtroclusterRpcInterface(
  46. VOID
  47. );
  48. DWORD
  49. ClusterRegisterJoinVersionRpcInterface(
  50. VOID
  51. );
  52. VOID
  53. ClusterDeregisterRpcInterfaces(
  54. VOID
  55. );
  56. VOID
  57. ClusterShutdownRpcServer(
  58. VOID
  59. );
  60. DWORD
  61. CspSetErrorCode(
  62. IN DWORD ErrorCode,
  63. OUT LPSERVICE_STATUS ServiceStatus
  64. );
  65. VOID
  66. GenerateExceptionReport(
  67. IN PEXCEPTION_POINTERS pExceptionInfo
  68. );
  69. //
  70. // Restore database related functions
  71. //
  72. DWORD
  73. RdbStopSvcOnNodes(
  74. IN PNM_NODE_ENUM2 pNodeEnum,
  75. IN LPCWSTR lpszServiceName
  76. );
  77. VOID
  78. RdbGetRestoreDbParams(
  79. IN HKEY hClusSvcKey
  80. );
  81. BOOL
  82. RdbFixupQuorumDiskSignature(
  83. IN DWORD dwSignature
  84. );
  85. DWORD
  86. RdbpOpenDiskDevice(
  87. IN LPCWSTR lpDriveLetter,
  88. OUT PHANDLE pFileHandle
  89. );
  90. DWORD
  91. RdbpCompareAndWriteSignatureToDisk(
  92. IN HANDLE hFile,
  93. IN DWORD dwSignature
  94. );
  95. DWORD
  96. RdbStartSvcOnNodes(
  97. IN LPCWSTR lpszServiceName
  98. );
  99. DWORD
  100. RdbInitialize(
  101. VOID
  102. );
  103. DWORD
  104. RdbpUnloadClusterHive(
  105. VOID
  106. );
  107. DWORD
  108. RdbpDeleteRestoreDbParams(
  109. VOID
  110. );
  111. DWORD
  112. VssWriterInit(
  113. VOID
  114. );
  115. RPC_STATUS
  116. CspRegisterDynamicLRPCEndpoint(
  117. VOID
  118. );
  119. //
  120. // Private Constants
  121. //
  122. #define CS_MAX_DELAYED_WORK_THREADS 5
  123. #define CS_MAX_CRITICAL_WORK_THREADS 1 // The critical queue is serialized
  124. #define MIN_WORKING_SET_SIZE (1*1024*1024)
  125. #define MAX_WORKING_SET_SIZE (2*MIN_WORKING_SET_SIZE)
  126. extern BOOLEAN bFormCluster;