//*************************************************************************** // // MINISERV.CPP // // Module: OLE MS SNMP Property Provider // // Purpose: Implementation for the SnmpGetEventObject class. // // Copyright (c) 1996-2001 Microsoft Corporation, All Rights Reserved // //*************************************************************************** #include #include #include #include #include #include #include #include #include #include #include #include #include #include "classfac.h" #include "guids.h" #include #include #include #include #include "trrtcomm.h" #include "trrtprov.h" #include "trrt.h" EventAsyncEventObject :: EventAsyncEventObject ( CImpFrameworkProv *a_Provider , IWbemObjectSink* pSink, long lFlags ) : WbemTaskObject ( a_Provider , pSink , lFlags , NULL ) { } EventAsyncEventObject :: ~EventAsyncEventObject () { } void EventAsyncEventObject :: ProcessComplete () { if ( SUCCEEDED ( m_ErrorObject.GetWbemStatus () ) ) { } else { } /* * Remove worker object from worker thread container */ CImpFrameworkProv:: s_DefaultThreadObject->ReapTask ( *this ) ; delete this ; } void EventAsyncEventObject :: Process () { switch ( m_State ) { case 0: { Complete () ; WaitAcknowledgement () ; BOOL t_Status = ProcessEvent ( m_ErrorObject ) ; if ( t_Status ) { } else { ProcessComplete () ; } } break ; default: { } break ; } } BOOL EventAsyncEventObject :: ProcessEvent ( WbemProviderErrorObject &a_ErrorObject ) { return TRUE ; }