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.

50 lines
1.1 KiB

  1. //***************************************************************************
  2. //
  3. // ClassFac.h
  4. //
  5. // Module: WBEM Instance provider sample code
  6. //
  7. // Purpose: Genral purpose include file.
  8. //
  9. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #ifndef _ClassFactory_H_
  13. #define _ClassFactory_H_
  14. #define _WIN32_DCOM
  15. // This class is the class factory for CMSIProv objects.
  16. class CProvFactory : public IClassFactory
  17. {
  18. protected:
  19. ULONG m_cRef;
  20. public:
  21. CProvFactory(void);
  22. ~CProvFactory(void);
  23. //IUnknown members
  24. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  25. STDMETHODIMP_(ULONG) AddRef(void);
  26. STDMETHODIMP_(ULONG) Release(void);
  27. //IClassFactory members
  28. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);
  29. STDMETHODIMP LockServer(BOOL);
  30. };
  31. typedef CProvFactory *PCProvFactory;
  32. #endif