mirror of https://github.com/tongzx/nt5src
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
34 lines
705 B
//+-------------------------------------------------------------------------
|
|
//
|
|
// 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_
|