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.

34 lines
705 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000
  6. //
  7. // File: error.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CSCPIN_ERROR_H_
  11. #define __CSCPIN_ERROR_H_
  12. class CWinError
  13. {
  14. public:
  15. CWinError(DWORD dwError);
  16. CWinError(HRESULT hr);
  17. ~CWinError(void) { };
  18. operator LPCWSTR () const
  19. { return m_szText; }
  20. LPCWSTR Text(void) const
  21. { return m_szText; }
  22. private:
  23. WCHAR m_szText[512];
  24. void _Initialize(DWORD dwError, bool bHResult);
  25. };
  26. #endif // __CSCPIN_ERROR_H_