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.

26 lines
693 B

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1998-2001 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: FreeLog.h
  6. //
  7. // Owner: KenSh
  8. //
  9. // Description:
  10. //
  11. // Runtime logging for use in both checked and free builds.
  12. //
  13. //=======================================================================
  14. #pragma once
  15. #include <tchar.h>
  16. #define DEFAULT_LOG_FILE_NAME _T("Windows Update.log")
  17. void InitFreeLogging(LPCTSTR pszModuleName, LPCTSTR pszLogFileName = DEFAULT_LOG_FILE_NAME);
  18. void TermFreeLogging();
  19. void LogMessage(LPCSTR pszFormatA, ...);
  20. void LogError(DWORD dwError, LPCSTR pszFormatA, ...);