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.

64 lines
1.5 KiB

  1. //***************************************************************************
  2. //
  3. // NTEVTCFAC.H
  4. //
  5. // Module: WBEM NT EVENT PROVIDER
  6. //
  7. // Copyright (c) 1996-2001 Microsoft Corporation, All Rights Reserved
  8. //
  9. //***************************************************************************
  10. #ifndef _NT_EVT_PROV_NTEVTCFAC_H
  11. #define _NT_EVT_PROV_NTEVTCFAC_H
  12. /////////////////////////////////////////////////////////////////////////
  13. // This class is the class factory for the event provider.
  14. class CNTEventProviderClassFactory : public IClassFactory
  15. {
  16. private:
  17. long m_referenceCount ;
  18. protected:
  19. public:
  20. static LONG locksInProgress ;
  21. static LONG objectsInProgress ;
  22. CNTEventProviderClassFactory () ;
  23. ~CNTEventProviderClassFactory ( void ) ;
  24. //IUnknown members
  25. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  26. STDMETHODIMP_( ULONG ) AddRef () ;
  27. STDMETHODIMP_( ULONG ) Release () ;
  28. //IClassFactory members
  29. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) = 0;
  30. STDMETHODIMP LockServer ( BOOL ) ;
  31. };
  32. class CNTEventlogEventProviderClassFactory : public CNTEventProviderClassFactory
  33. {
  34. public:
  35. //IClassFactory members
  36. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * );
  37. };
  38. class CNTEventlogInstanceProviderClassFactory : public CNTEventProviderClassFactory
  39. {
  40. public:
  41. //IClassFactory members
  42. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * );
  43. };
  44. #endif //_NT_EVT_PROV_NTEVTCFAC_H