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.

67 lines
740 B

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1998 - 1998
  3. All rights reserved.
  4. Module Name:
  5. result.hxx
  6. Abstract:
  7. Result helper class
  8. Author:
  9. Steve Kiraly (SteveKi) 03-20-1998
  10. Revision History:
  11. --*/
  12. #ifndef _RESULT_HXX
  13. #define _RESULT_HXX
  14. class TResult
  15. {
  16. public:
  17. TResult(
  18. IN DWORD dwLastError
  19. );
  20. ~TResult(
  21. VOID
  22. );
  23. BOOL
  24. bValid(
  25. VOID
  26. );
  27. TResult(
  28. const TResult &rhs
  29. );
  30. const TResult &
  31. operator =(
  32. const TResult &rhs
  33. );
  34. operator DWORD(
  35. VOID
  36. );
  37. BOOL
  38. bGetErrorString(
  39. IN TString &strLastError
  40. ) const;
  41. private:
  42. DWORD _dwLastError;
  43. };
  44. #endif // _RESULT_HXX