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.

47 lines
1.5 KiB

  1. /*===================================================================
  2. Microsoft Denali
  3. Microsoft Confidential.
  4. Copyright 1996 Microsoft Corporation. All Rights Reserved.
  5. Component: NT Event logging
  6. File: eventlog.h
  7. Owner: jhittle
  8. This is the header file for eventlog.cpp
  9. ===================================================================*/
  10. #ifndef EVENTLOG_H
  11. #define EVENTLOG_H
  12. #define MAX_MSG_LENGTH 512
  13. #define MSG_ID_MASK 0x0000FFFF
  14. #define MAX_INSERT_STRS 8
  15. STDAPI RegisterEventLog( void );
  16. STDAPI UnRegisterEventLog( void );
  17. STDAPI ReportAnEvent(DWORD dwIdEvent, WORD wEventlog_Type, WORD cStrings, LPCSTR *pszStrings,
  18. DWORD dwBinDataSize = 0, LPVOID pData = NULL);
  19. STDAPI ReportAnEventW(DWORD dwIdEvent, WORD wEventlog_Type, WORD cStrings, LPCWSTR *pszStrings);
  20. extern void MSG_Error( LPCSTR );
  21. extern void MSG_Error( UINT );
  22. extern void MSG_Error( UINT, PCSTR, UINT, DWORD Err = 0);
  23. extern void MSG_Error( UINT, UINT );
  24. extern void MSG_Error( UINT, UINT, UINT );
  25. extern void MSG_Error( UINT, UINT, UINT, UINT );
  26. extern void MSG_Error( DWORD, LPCWSTR);
  27. extern void MSG_Warning( LPCSTR );
  28. extern void MSG_Warning( UINT );
  29. extern void MSG_Warning( UINT, UINT );
  30. extern void MSG_Warning( UINT, UINT, UINT );
  31. extern void MSG_Warning( UINT, UINT, UINT, UINT );
  32. extern void MSG_Warning( DWORD, LPCWSTR, LPCWSTR );
  33. // support function
  34. //extern void queryEventLog(void);
  35. #endif //EVENTLOG_H