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.

65 lines
948 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. ntstatus.hxx
  6. Abstract:
  7. auto log
  8. Author:
  9. Larry Zhu (LZhu) December 8, 2001
  10. Revision History:
  11. --*/
  12. #ifndef _NTSTATUS_HXX_
  13. #define _NTSTATUS_HXX_
  14. #include "dbgstate.hxx"
  15. #ifdef DBG
  16. class TNtStatus : public TStatusDerived<NTSTATUS> {
  17. public:
  18. TNtStatus(
  19. IN NTSTATUS Status = kUnInitializedValue
  20. );
  21. ~TNtStatus(
  22. VOID
  23. );
  24. virtual bool
  25. IsErrorSevereEnough(
  26. VOID
  27. ) const;
  28. virtual PCTSTR
  29. GetErrorServerityDescription(
  30. VOID
  31. ) const;
  32. private:
  33. TNtStatus(const TNtStatus& rhs);
  34. NTSTATUS
  35. operator=(
  36. IN NTSTATUS Status
  37. );
  38. };
  39. #else
  40. #define TNtStatus NTSTATUS // NTSTATUS in free build
  41. #endif // DBG
  42. #endif // _NTSTATUS_HXX