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.

114 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. init.h
  5. Abstract:
  6. Public data structures and procedure prototypes for
  7. the INIT subcomponent of the NT Cluster Service
  8. Author:
  9. John Vert (jvert) 7-Feb-1996
  10. Revision History:
  11. --*/
  12. //
  13. // Shutdown Types
  14. //
  15. typedef enum _SHUTDOWN_TYPE {
  16. CsShutdownTypeStop = 0,
  17. CsShutdownTypeShutdown,
  18. CsShutdownTypeMax
  19. } SHUTDOWN_TYPE;
  20. extern SHUTDOWN_TYPE CsShutdownRequest;
  21. // While another node is joining, we will keep track of any DM or FM updates.
  22. extern BOOL CsDmOrFmHasChanged;
  23. //
  24. // A few interfaces for reporting of errors.
  25. //
  26. VOID
  27. ClusterLogFatalError(
  28. IN ULONG LogModule,
  29. IN ULONG Line,
  30. IN LPSTR File,
  31. IN ULONG ErrCode
  32. );
  33. VOID
  34. ClusterLogEvent0(
  35. IN DWORD LogLevel,
  36. IN DWORD LogModule,
  37. IN LPSTR FileName,
  38. IN DWORD LineNumber,
  39. IN DWORD MessageId,
  40. IN DWORD dwByteCount,
  41. IN PVOID lpBytes
  42. );
  43. VOID
  44. ClusterLogEvent1(
  45. IN DWORD LogLevel,
  46. IN DWORD LogModule,
  47. IN LPSTR FileName,
  48. IN DWORD LineNumber,
  49. IN DWORD MessageId,
  50. IN DWORD dwByteCount,
  51. IN PVOID lpBytes,
  52. IN LPCWSTR Arg1
  53. );
  54. VOID
  55. ClusterLogEvent2(
  56. IN DWORD LogLevel,
  57. IN DWORD LogModule,
  58. IN LPSTR FileName,
  59. IN DWORD LineNumber,
  60. IN DWORD MessageId,
  61. IN DWORD dwByteCount,
  62. IN PVOID lpBytes,
  63. IN LPCWSTR Arg1,
  64. IN LPCWSTR Arg2
  65. );
  66. VOID
  67. ClusterLogEvent3(
  68. IN DWORD LogLevel,
  69. IN DWORD LogModule,
  70. IN LPSTR FileName,
  71. IN DWORD LineNumber,
  72. IN DWORD MessageId,
  73. IN DWORD dwByteCount,
  74. IN PVOID lpBytes,
  75. IN LPCWSTR Arg1,
  76. IN LPCWSTR Arg2,
  77. IN LPCWSTR Arg3
  78. );
  79. //
  80. // Convenient memory allocation routines
  81. //
  82. PVOID
  83. CsAlloc(
  84. DWORD Size
  85. );
  86. #define CsFree(_p_) LocalFree(_p_)
  87. LPWSTR
  88. CsStrDup(
  89. LPCWSTR String
  90. );