windows-nt/Source/XPSP1/NT/shell/ext/cscui/pin/error.h

35 lines
705 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// 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_