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.

112 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. sspioutput.hxx
  6. Abstract:
  7. sspioutput
  8. Author:
  9. Larry Zhu (LZhu) Junary 1, 2002 Created
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. --*/
  14. #ifndef SSPI_OUTPUT_HXX
  15. #define SSPI_OUTPUT_HXX
  16. #define DBG_NONE 0x00
  17. #define DBG_WARN 0x01
  18. #define DBG_ERROR 0x02
  19. #define DBG_LOG 0x04
  20. #define DBG_LOG_MORE 0x08
  21. #define DBG_MSG 0x10
  22. typedef struct _TSspiLibarayGlobals
  23. {
  24. ULONG uMajorVersion;
  25. ULONG uMinorVersion;
  26. ULONG uDebugMask;
  27. PCTSTR pszDbgPrompt;
  28. PCRITICAL_SECTION pCriticalSection;
  29. } TSspiLibarayGlobals;
  30. extern TSspiLibarayGlobals g_SspiGlobals;
  31. VOID
  32. SspiPrintHex(
  33. IN ULONG ulLevel,
  34. IN OPTIONAL PCTSTR pszBanner,
  35. IN ULONG cbBuffer,
  36. IN const VOID* pvbuffer
  37. );
  38. VOID
  39. SspiPrint(
  40. IN ULONG ulLevel,
  41. IN PCTSTR pszFmt,
  42. IN ...
  43. );
  44. PCTSTR
  45. SspiLevel2Str(
  46. IN ULONG ulLevel
  47. );
  48. VOID
  49. SspiVOutputDebugStringPrint(
  50. IN OPTIONAL PCTSTR pszBanner,
  51. IN PCTSTR pszFmt,
  52. IN va_list pArgs
  53. );
  54. VOID
  55. SspiOutputDebugStringPrint(
  56. IN OPTIONAL PCTSTR pszBanner,
  57. IN PCTSTR pszFmt,
  58. IN ...
  59. );
  60. VOID
  61. SspiLogOpen(
  62. IN PCTSTR pszPrompt,
  63. IN ULONG ulMask
  64. );
  65. VOID
  66. SspiLogOpenSerialized(
  67. IN PCTSTR pszPrompt,
  68. IN ULONG ulMask,
  69. IN PCRITICAL_SECTION pCriticalSection
  70. );
  71. VOID
  72. SspiLogClose(
  73. VOID
  74. );
  75. VOID
  76. SspiPrintSysTimeAsLocalTime(
  77. IN ULONG ulLevel,
  78. IN PCTSTR pszBanner,
  79. IN LARGE_INTEGER* pSysTime
  80. );
  81. VOID
  82. SspiPrintLocalTime(
  83. IN ULONG ulLevel,
  84. IN PCTSTR pszBanner,
  85. IN LARGE_INTEGER* pLocalTime
  86. );
  87. #endif // #ifndef OUTPUT_HXX