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.

110 lines
1.7 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. //
  22. // A few interfaces for reporting of errors.
  23. //
  24. VOID
  25. ClusterLogFatalError(
  26. IN ULONG LogModule,
  27. IN ULONG Line,
  28. IN LPSTR File,
  29. IN ULONG ErrCode
  30. );
  31. VOID
  32. ClusterLogEvent0(
  33. IN DWORD LogLevel,
  34. IN DWORD LogModule,
  35. IN LPSTR FileName,
  36. IN DWORD LineNumber,
  37. IN DWORD MessageId,
  38. IN DWORD dwByteCount,
  39. IN PVOID lpBytes
  40. );
  41. VOID
  42. ClusterLogEvent1(
  43. IN DWORD LogLevel,
  44. IN DWORD LogModule,
  45. IN LPSTR FileName,
  46. IN DWORD LineNumber,
  47. IN DWORD MessageId,
  48. IN DWORD dwByteCount,
  49. IN PVOID lpBytes,
  50. IN LPCWSTR Arg1
  51. );
  52. VOID
  53. ClusterLogEvent2(
  54. IN DWORD LogLevel,
  55. IN DWORD LogModule,
  56. IN LPSTR FileName,
  57. IN DWORD LineNumber,
  58. IN DWORD MessageId,
  59. IN DWORD dwByteCount,
  60. IN PVOID lpBytes,
  61. IN LPCWSTR Arg1,
  62. IN LPCWSTR Arg2
  63. );
  64. VOID
  65. ClusterLogEvent3(
  66. IN DWORD LogLevel,
  67. IN DWORD LogModule,
  68. IN LPSTR FileName,
  69. IN DWORD LineNumber,
  70. IN DWORD MessageId,
  71. IN DWORD dwByteCount,
  72. IN PVOID lpBytes,
  73. IN LPCWSTR Arg1,
  74. IN LPCWSTR Arg2,
  75. IN LPCWSTR Arg3
  76. );
  77. //
  78. // Convenient memory allocation routines
  79. //
  80. PVOID
  81. CsAlloc(
  82. DWORD Size
  83. );
  84. #define CsFree(_p_) LocalFree(_p_)
  85. LPWSTR
  86. CsStrDup(
  87. LPCWSTR String
  88. );