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.

39 lines
1.1 KiB

  1. //***************************************************************************
  2. //
  3. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  4. //
  5. //***************************************************************************
  6. #ifndef _WMI_CPROVFACTORY_HEADER
  7. #define _WMI_CPROVFACTORY_HEADER
  8. typedef void** PPVOID;
  9. ////////////////////////////////////////////////////////////////////
  10. //
  11. // This class is the class factory for CWMI_Prov objects.
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. class CProvFactory : public IClassFactory
  15. {
  16. protected:
  17. ULONG m_cRef;
  18. CLSID m_ClsId;
  19. public:
  20. CProvFactory(const CLSID & ClsId);
  21. ~CProvFactory(void);
  22. //IUnknown members
  23. STDMETHODIMP QueryInterface(REFIID, PPVOID);
  24. STDMETHODIMP_(ULONG) AddRef(void);
  25. STDMETHODIMP_(ULONG) Release(void);
  26. //IClassFactory members
  27. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, PPVOID);
  28. STDMETHODIMP LockServer(BOOL);
  29. };
  30. typedef CProvFactory *PCProvFactory;
  31. #endif