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.

119 lines
2.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2002 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // Log.h
  7. //
  8. // Description:
  9. // Log file functions.
  10. //
  11. // Maintained By:
  12. // David Potter (DavidP) 27-MAR-2002
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. //
  17. // Log entry types for displaying text at the beginning of each line.
  18. //
  19. #define LOGTYPE_NONE ( (DWORD) -1 )
  20. #define LOGTYPE_DEBUG ( (DWORD) -2 )
  21. #define LOGTYPE_INFO ( (DWORD) -3 )
  22. #define LOGTYPE_WARNING ( (DWORD) -4 )
  23. #define LOGTYPE_ERROR ( (DWORD) -5 )
  24. HRESULT
  25. HrLogOpen( void );
  26. HRESULT
  27. HrLogClose( void );
  28. HRESULT
  29. HrLogRelease( void );
  30. HRESULT
  31. HrGetLogFilePath(
  32. const WCHAR * pszPathIn
  33. , WCHAR * pszFilePathOut
  34. , size_t * pcchFilePathInout
  35. , HINSTANCE hInstanceIn
  36. );
  37. LPCWSTR
  38. PszLogFilePath( void );
  39. void
  40. __cdecl
  41. LogMsg(
  42. DWORD nLogEntryTypeIn
  43. , LPCSTR paszFormatIn
  44. , ...
  45. );
  46. void
  47. __cdecl
  48. LogMsg(
  49. DWORD nLogEntryTypeIn
  50. , LPCWSTR pszFormatIn
  51. , ...
  52. );
  53. void
  54. __cdecl
  55. LogMsg(
  56. LPCSTR paszFormatIn,
  57. ...
  58. );
  59. void
  60. __cdecl
  61. LogMsg(
  62. LPCWSTR pszFormatIn,
  63. ...
  64. );
  65. void
  66. __cdecl
  67. LogMsgNoNewline(
  68. DWORD nLogEntryTypeIn
  69. , LPCSTR paszFormatIn
  70. , ...
  71. );
  72. void
  73. __cdecl
  74. LogMsgNoNewline(
  75. DWORD nLogEntryTypeIn
  76. , LPCWSTR pszFormatIn
  77. , ...
  78. );
  79. void
  80. __cdecl
  81. LogMsgNoNewline(
  82. LPCSTR paszFormatIn,
  83. ...
  84. );
  85. void
  86. __cdecl
  87. LogMsgNoNewline(
  88. LPCWSTR pszFormatIn,
  89. ...
  90. );
  91. void
  92. LogStatusReport(
  93. SYSTEMTIME * pstTimeIn
  94. , const WCHAR * pcszNodeNameIn
  95. , CLSID clsidTaskMajorIn
  96. , CLSID clsidTaskMinorIn
  97. , ULONG ulMinIn
  98. , ULONG ulMaxIn
  99. , ULONG ulCurrentIn
  100. , HRESULT hrStatusIn
  101. , const WCHAR * pcszDescriptionIn
  102. , const WCHAR * pcszUrlIn
  103. );