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.

201 lines
3.8 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. beta.h
  5. Abstract:
  6. Implements logging just for the beta releases.
  7. Author:
  8. Jim Schmidt (jimschm) 11-Jun-1998
  9. Revision History:
  10. <alias> <date> <comments>
  11. --*/
  12. #pragma once
  13. #define WIN9XUPG_BETA
  14. #define BETA_FAILURE "Failure"
  15. #define BETA_INFO "Info"
  16. #define BETA_WARNING "Warning"
  17. VOID
  18. InitBetaLog (
  19. BOOL EraseExistingLog
  20. );
  21. VOID
  22. CloseBetaLog (
  23. VOID
  24. );
  25. VOID
  26. SelectBetaLog (
  27. BOOL UseBetaLog
  28. );
  29. VOID
  30. _cdecl
  31. BetaMessageA (
  32. IN PCSTR Category,
  33. IN PCSTR FormatStr,
  34. ... // ANSI args
  35. );
  36. VOID
  37. _cdecl
  38. BetaCondMessageA (
  39. IN BOOL Expr,
  40. IN PCSTR Category,
  41. IN PCSTR FormatStr,
  42. ... // ANSI args
  43. );
  44. VOID
  45. _cdecl
  46. BetaErrorMessageA (
  47. IN PCSTR Category,
  48. IN PCSTR FormatStr,
  49. ... // ANSI args
  50. );
  51. VOID
  52. _cdecl
  53. BetaMessageW (
  54. IN PCSTR AnsiCategory,
  55. IN PCSTR AnsiFormatStr,
  56. ... // UNICODE args
  57. );
  58. VOID
  59. _cdecl
  60. BetaCondMessageW (
  61. IN BOOL Expr,
  62. IN PCSTR AnsiCategory,
  63. IN PCSTR AnsiFormatStr,
  64. ... // UNICODE args
  65. );
  66. VOID
  67. _cdecl
  68. BetaErrorMessageW (
  69. IN PCSTR AnsiCategory,
  70. IN PCSTR AnsiFormatStr,
  71. ... // UNICODE args
  72. );
  73. VOID
  74. BetaCategory (
  75. IN PCSTR Category
  76. );
  77. VOID
  78. BetaLogDirectA (
  79. IN PCSTR Text
  80. );
  81. VOID
  82. BetaLogDirectW (
  83. IN PCWSTR Text
  84. );
  85. VOID
  86. BetaLogLineA (
  87. IN PCSTR FormatStr,
  88. ... // ANSI args
  89. );
  90. VOID
  91. BetaLogLineW (
  92. IN PCSTR FormatStr,
  93. ... // UNICODE args
  94. );
  95. VOID
  96. BetaNoWrapA (
  97. IN PCSTR Category,
  98. IN PCSTR FormatStr,
  99. ... // ANSI args
  100. );
  101. VOID
  102. BetaNoWrapW (
  103. IN PCSTR Category,
  104. IN PCSTR FormatStr,
  105. ... // UNICODE args
  106. );
  107. #define CONFIGLOGA(x) SelectBetaLog(FALSE);BetaLogLineA x;SelectBetaLog(TRUE)
  108. #define CONFIGLOGW(x) SelectBetaLog(FALSE);BetaLogLineW x;SelectBetaLog(TRUE)
  109. #define BETAMSGA(x) BetaMessageA x
  110. #define BETAMSGW(x) BetaMessageW x
  111. #define BETAMSGA_IF(x) BetaCondMessageA x
  112. #define BETAMSGW_IF(x) BetaCondMessageW x
  113. #define BETAERRORA(x) BetaErrorMessageA x
  114. #define BETAERRORW(x) BetaErrorMessageW x
  115. #define ELSE_BETAMSGA(x) else BetaMessageA x
  116. #define ELSE_BETAMSGW(x) else BetaMessageW x
  117. #define ELSE_BETAMSGA_IF(x) else BetaCondMessageA x
  118. #define ELSE_BETAMSGW_IF(x) else BetaCondMessageW x
  119. #define BETAMSG_CATEGORY(x) BetaCategory x
  120. #define BETAMSG_DIRECTA(x) BetaLogDirectA x
  121. #define BETAMSG_DIRECTW(x) BetaLogDirectW x
  122. #define BETAMSG_LINEA(x) BetaLogLineA x
  123. #define BETAMSG_LINEW(x) BetaLogLineW x
  124. #define BETAMSG_NOWRAPA(x) BetaNoWrapA x
  125. #define BETAMSG_NOWRAPW(x) BetaNoWrapW x
  126. #ifdef UNICODE
  127. #define BETAMSG BETAMSGW
  128. #define BETAMSG_IF BETAMSGW_IF
  129. #define BETAERROR BETAERRORW
  130. #define ELSE_BETAMSG ELSE_BETAMSGW
  131. #define ELSE_BETAMSG_IF ELSE_BETAMSGW_IF
  132. #define BETAMSG_DIRECT BETAMSG_DIRECTW
  133. #define BETAMSG_LINE BETAMSG_LINEW
  134. #define BETAMSG_NOWRAP BETAMSG_NOWRAPW
  135. #define CONFIGLOG CONFIGLOGW
  136. #else
  137. #define BETAMSG BETAMSGA
  138. #define BETAMSG_IF BETAMSGA_IF
  139. #define BETAERROR BETAERRORA
  140. #define ELSE_BETAMSG ELSE_BETAMSGA
  141. #define ELSE_BETAMSG_IF ELSE_BETAMSGA_IF
  142. #define BETAMSG_DIRECT BETAMSG_DIRECTA
  143. #define BETAMSG_LINE BETAMSG_LINEA
  144. #define BETAMSG_NOWRAP BETAMSG_NOWRAPA
  145. #define CONFIGLOG CONFIGLOGA
  146. #endif