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.

45 lines
1.3 KiB

  1. //*************************************************************
  2. //
  3. // Events.h - header file for events.c
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1995
  7. // All rights reserved
  8. //
  9. //*************************************************************
  10. #include "gpdasevt.h"
  11. #include "smartptr.h"
  12. #include <strsafe.h>
  13. class CEvents
  14. {
  15. private:
  16. BOOL m_bError; // the kind of error to log
  17. DWORD m_dwId; // id of the msg
  18. XPtrLF<LPTSTR> m_xlpStrings; // Array to store arguments
  19. WORD m_cStrings; // Number of elements already in the array
  20. WORD m_cAllocated; // Number of elements allocated
  21. BOOL m_bInitialised; // Initialised ?
  22. BOOL m_bFailed; // Failed in processing ?
  23. // Not implemented.
  24. CEvents(const CEvents& x);
  25. CEvents& operator=(const CEvents& x);
  26. BOOL ReallocArgStrings();
  27. public:
  28. CEvents(BOOL bError, DWORD dwId );
  29. BOOL AddArg(LPTSTR szArg);
  30. BOOL AddArg(DWORD dwArg);
  31. BOOL AddArgHex(DWORD dwArg);
  32. BOOL Report();
  33. ~CEvents();
  34. };
  35. extern TCHAR MessageResourceFile[];
  36. BOOL ShutdownEvents (void);