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.

53 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1997
  5. //
  6. // File: ClassFac.hxx
  7. //
  8. // Contents: Class factory for admin COM object
  9. //
  10. // History: 26-Nov-1996 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. //+-------------------------------------------------------------------------
  15. //
  16. // Class: CCIAdminCF
  17. //
  18. // Purpose: Class factory for MMC snap-in
  19. //
  20. // History: 26-Nov-1996 KyleP Created
  21. //
  22. //--------------------------------------------------------------------------
  23. class CCIAdminCF : public IClassFactory
  24. {
  25. public:
  26. virtual SCODE STDMETHODCALLTYPE QueryInterface( REFIID riid,
  27. void ** ppvObject);
  28. virtual ULONG STDMETHODCALLTYPE AddRef();
  29. virtual ULONG STDMETHODCALLTYPE Release();
  30. virtual SCODE STDMETHODCALLTYPE CreateInstance( IUnknown * pUnkOuter,
  31. REFIID riid, void * * ppvObject );
  32. virtual SCODE STDMETHODCALLTYPE LockServer( BOOL fLock );
  33. protected:
  34. friend SCODE STDMETHODCALLTYPE DllGetClassObject( REFCLSID cid,
  35. REFIID iid, void** ppvObj );
  36. CCIAdminCF();
  37. virtual ~CCIAdminCF();
  38. long _uRefs;
  39. };