Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

47 lines
1.1 KiB

//***************************************************************************
//
// PROVIDER.H
//
// Module: HEALTHMON SERVER AGENT
//
// Purpose: Event consumer provider class definition
//
// Copyright (c)1999 Microsoft Corporation, All Rights Reserved
//
//***************************************************************************
#if !defined( __PROVIDER_H )
#define __PROVIDER_H
#include <wbemcli.h>
#include <wbemprov.h>
class CProvider : public IWbemEventConsumerProvider
{
public:
CProvider();
~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;
};
#endif // __PROVIDER_H