// ************************************************************************** // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // // File: Provider.cpp // // Description: Event consumer provider class definition // // // History: // // ************************************************************************** #include #include class CProvider : public IWbemEventConsumerProvider { public: CProvider(CListBox *pOutputList); ~CProvider(); // IUnknown members STDMETHODIMP QueryInterface(REFIID, LPVOID *); STDMETHODIMP_(ULONG) AddRef(void); STDMETHODIMP_(ULONG) Release(void); STDMETHOD(Initialize)( LPWSTR pszUser, LONG lFlags, LPWSTR pszNamespace, LPWSTR pszLocale, IWbemServices __RPC_FAR *pNamespace, IWbemContext __RPC_FAR *pCtx, IWbemProviderInitSink __RPC_FAR *pInitSink); STDMETHOD(FindConsumer)( IWbemClassObject* pLogicalConsumer, IWbemUnboundObjectSink** ppConsumer); private: DWORD m_cRef; CListBox *m_pOutputList; };