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

  1. //***************************************************************************
  2. //
  3. // PROVIDER.H
  4. //
  5. // Module: HEALTHMON SERVER AGENT
  6. //
  7. // Purpose: Event consumer provider class definition
  8. //
  9. // Copyright (c)1999 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #if !defined( __PROVIDER_H )
  13. #define __PROVIDER_H
  14. #include <wbemcli.h>
  15. #include <wbemprov.h>
  16. class CProvider : public IWbemEventConsumerProvider
  17. {
  18. public:
  19. CProvider();
  20. ~CProvider();
  21. // IUnknown members
  22. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  23. STDMETHODIMP_(ULONG) AddRef(void);
  24. STDMETHODIMP_(ULONG) Release(void);
  25. STDMETHOD(Initialize)(
  26. LPWSTR pszUser,
  27. LONG lFlags,
  28. LPWSTR pszNamespace,
  29. LPWSTR pszLocale,
  30. IWbemServices __RPC_FAR *pNamespace,
  31. IWbemContext __RPC_FAR *pCtx,
  32. IWbemProviderInitSink __RPC_FAR *pInitSink);
  33. STDMETHOD(FindConsumer)(
  34. IWbemClassObject* pLogicalConsumer,
  35. IWbemUnboundObjectSink** ppConsumer);
  36. private:
  37. DWORD m_cRef;
  38. };
  39. #endif // __PROVIDER_H