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.

44 lines
1.2 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. class CEvents
  13. {
  14. private:
  15. BOOL m_bError; // the kind of error to log
  16. DWORD m_dwId; // id of the msg
  17. XPtrLF<LPTSTR> m_xlpStrings; // Array to store arguments
  18. WORD m_cStrings; // Number of elements already in the array
  19. WORD m_cAllocated; // Number of elements allocated
  20. BOOL m_bInitialised; // Initialised ?
  21. BOOL m_bFailed; // Failed in processing ?
  22. // Not implemented.
  23. CEvents(const CEvents& x);
  24. CEvents& operator=(const CEvents& x);
  25. BOOL ReallocArgStrings();
  26. public:
  27. CEvents(BOOL bError, DWORD dwId );
  28. BOOL AddArg(LPTSTR szArg);
  29. BOOL AddArg(DWORD dwArg);
  30. BOOL AddArgHex(DWORD dwArg);
  31. BOOL Report();
  32. ~CEvents();
  33. };
  34. extern TCHAR MessageResourceFile[];
  35. BOOL ShutdownEvents (void);