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.

36 lines
806 B

  1. //
  2. // log.h
  3. //
  4. // Copyright (c) Microsoft Corp, 1997
  5. //
  6. // This file contains the code necessary to log error messages to the event
  7. // log of a remote machine (or a local machine, depending on the #defines
  8. // below).
  9. //
  10. // Revision History:
  11. //
  12. // LarryWin Created 12/15/1997
  13. //
  14. // defines
  15. // target machine
  16. #define SZ_IPC_SHARE L"\\\\larrywin2\\ipc$"
  17. #define SZ_TARGETMACHINE L"\\\\larrywin2"
  18. #define SZ_TEST L"SCLogon"
  19. // event levels
  20. #define PERF_ERROR EVENTLOG_ERROR_TYPE
  21. #define PERF_WARNING EVENTLOG_WARNING_TYPE
  22. #define PERF_INFORMATION EVENTLOG_INFORMATION_TYPE
  23. // function prototypes
  24. void SetEventMachine(LPWSTR*);
  25. void Event(DWORD, LPWSTR, DWORD);
  26. BOOL OpenIPCConnection();
  27. BOOL ErrorToEventLog(DWORD, LPWSTR, DWORD);