eventlog.h 731 B

12345678910111213141516171819202122232425262728293031323334
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. // EVENTLOG.H
  7. //
  8. // This file contains the defines that make NT an installable service.
  9. //
  10. // 1/12/95 aruna
  11. //
  12. // Functions in eventlog.c
  13. #ifndef _EVENTLOG_H_
  14. #define _EVENTLOG_H_
  15. #include "netsite.h"
  16. #if defined(XP_WIN32)
  17. NSPR_BEGIN_EXTERN_C
  18. NSAPI_PUBLIC HANDLE InitializeLogging(char *szEventLogName);
  19. NSAPI_PUBLIC BOOL TerminateLogging(HANDLE hEventSource);
  20. NSAPI_PUBLIC BOOL LogErrorEvent(HANDLE hEventSource, WORD fwEventType, WORD fwCategory, DWORD IDEvent, LPTSTR chMsg, LPTSTR lpszMsg);
  21. NSPR_END_EXTERN_C
  22. #endif /* XP_WIN32 */
  23. #endif