windows-nt/Source/XPSP1/NT/shell/ext/cscui/pin/error.h
2020-09-26 16:20:57 +08:00

35 lines
705 B
C++

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 2000
//
// File: error.h
//
//--------------------------------------------------------------------------
#ifndef __CSCPIN_ERROR_H_
#define __CSCPIN_ERROR_H_
class CWinError
{
public:
CWinError(DWORD dwError);
CWinError(HRESULT hr);
~CWinError(void) { };
operator LPCWSTR () const
{ return m_szText; }
LPCWSTR Text(void) const
{ return m_szText; }
private:
WCHAR m_szText[512];
void _Initialize(DWORD dwError, bool bHResult);
};
#endif // __CSCPIN_ERROR_H_