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.

36 lines
942 B

  1. /****************************************************************************************************************
  2. FILENAME: Logging.h
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. DESCRIPTION:
  5. Event logging prototypes.
  6. ***************************************************************************************************/
  7. //Gets the logging options from the registry and sets up to begin logging.
  8. BOOL InitLogging(
  9. PTCHAR cEventSource
  10. );
  11. //Called by Init Logging, gets the logging options from the registry.
  12. BOOL GetLogOptionsFromRegistry(
  13. );
  14. //When done logging, it closes our handles to the event log.
  15. BOOL CleanupLogging(
  16. );
  17. //Used to log a specific event.
  18. BOOL LogEvent(
  19. DWORD dwEventID,
  20. PTCHAR cMsg
  21. );
  22. #ifdef NOEVTLOG
  23. #define InitLogging(x) TRUE
  24. #define GetLogOptionsFromRegistry() TRUE
  25. #define CleanupLogging() TRUE
  26. #define LogEvent(x,y) TRUE
  27. #endif