Leaked source code of windows server 2003
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.
 
 
 
 
 
 

49 lines
1.3 KiB

//+---------------------------------------------------------------------------
//
// Copyright (C) 1994, Microsoft Corporation.
//
// File: msgexcpt.hxx
//
// Contents: Message exception package
//
// History: 96-Jan-98 DwightKr Created
//
//----------------------------------------------------------------------------
#pragma once
//+---------------------------------------------------------------------------
//
// Class: CMsgException
//
// Purpose: Exception class containing message numbers referring to
// keys within query.dll
//
// History: 96-Jan-08 DwightKr Created.
//
//----------------------------------------------------------------------------
class CMsgException : public CException
{
public:
CMsgException( long lError, ULONG ulErrorIndex )
: _ulErrorIndex(ulErrorIndex), CException(lError)
{
}
ULONG GetErrorIndex() const { return _ulErrorIndex; }
// inherited methods
EXPORTDEF virtual int WINAPI IsKindOf( const char * szClass ) const
{
if( strcmp( szClass, "CMsgException" ) == 0 )
return TRUE;
else
return CException::IsKindOf( szClass );
}
private:
ULONG _ulErrorIndex;
};