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.

39 lines
998 B

  1. /*
  2. * REVISIONS:
  3. * ane20Jan93: Initial Revision
  4. * cad31Aug93: removing compiler warnings
  5. * jod12Nov93: Name Problem Changed name to ErrTextGen
  6. * cad27Dec93: include file madness
  7. * pcy08Apr94: Trim size, use static iterators, dead code removal
  8. * jps13Jul94: removed os2.h, caused problem in 1.x
  9. * inf30Mar97: Added overloaded LogError definition
  10. */
  11. #ifndef _INC__ERRLOGR_H
  12. #define _INC__ERRLOGR_H
  13. #include "cdefine.h"
  14. #include "apc.h"
  15. #include "update.h"
  16. _CLASSDEF(ErrorLogger)
  17. extern PErrorLogger _theErrorLogger;
  18. class ErrorLogger : public UpdateObj {
  19. public:
  20. ErrorLogger(PUpdateObj);
  21. virtual ~ErrorLogger();
  22. virtual INT LogError(PCHAR theError, PCHAR aFile = (PCHAR)NULL,
  23. INT aLineNum = 0, INT use_errno = 0);
  24. virtual INT LogError(INT resourceID, PCHAR aString = (PCHAR)NULL,
  25. PCHAR aFile = (PCHAR)NULL, INT aLineNum = 0, INT use_errno = 0);
  26. INT Get(INT, PCHAR);
  27. INT Set(INT, const PCHAR);
  28. };
  29. #endif