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.
|
|
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1998-2002 Microsoft Corporation
//
// Module Name:
// SupportErrorInfo.h
//
// Description:
// Definition of the CSupportErrorInfo class.
//
// Implementation File:
//
//
// Author:
// Galen Barbee (galenb) 4-Aug-1998
//
// Revision History:
//
// Notes:
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _SUPPORTERRORINFO_H
#define _SUPPORTERRORINFO_H
#ifndef ARRAYSIZE
#define ARRAYSIZE(_x) RTL_NUMBER_OF(_x)
#endif
/////////////////////////////////////////////////////////////////////////////
// Forward Class Declarations
/////////////////////////////////////////////////////////////////////////////
class CSupportErrorInfo;
/////////////////////////////////////////////////////////////////////////////
//++
//
// class CSupportErrorInfo
//
// Description:
// Implementation of the InterfaceSupportsErrir Info
//
// Inheritance:
// ISupportErrorInfo
//
//--
/////////////////////////////////////////////////////////////////////////////
class CSupportErrorInfo : public ISupportErrorInfo { public: CSupportErrorInfo( void ) : m_piids( NULL ), m_piidsSize( 0 ) {}; // ~CSupportErrorInfo( void ) {};
STDMETHODIMP InterfaceSupportsErrorInfo( REFIID riid ) { ASSERT( m_piids != NULL ); ASSERT( m_piidsSize != 0 );
HRESULT _hr = S_FALSE;
if ( m_piids != NULL ) { for ( size_t i = 0; i < m_piidsSize; i++ ) { if ( InlineIsEqualGUID( m_piids[ i ], riid ) ) { _hr = S_OK; break; } } }
return _hr;
}
protected: const IID * m_piids; size_t m_piidsSize;
}; //*** Class CSupportErrorInfo
#endif // _SUPPORTERRORINFO_H
|