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.

36 lines
796 B

  1. //--------------------------------------------------------------------------------
  2. //
  3. // File: CLSSFACT.H
  4. //
  5. // Defines the CClassFactory object.
  6. //
  7. //--------------------------------------------------------------------------------
  8. #ifndef _CLSSFACT_H_
  9. #define _CLSSFACT_H_
  10. #include "propsext.h"
  11. void FAR PASCAL ObjectDestroyed();
  12. //This class factory object creates CPropSheetExt objects.
  13. class CClassFactory : public IClassFactory
  14. {
  15. protected:
  16. ULONG m_cRef;
  17. public:
  18. CClassFactory();
  19. ~CClassFactory();
  20. //IUnknown members
  21. STDMETHODIMP QueryInterface( REFIID, LPVOID* );
  22. STDMETHODIMP_(ULONG) AddRef();
  23. STDMETHODIMP_(ULONG) Release();
  24. //IClassFactory members
  25. STDMETHODIMP CreateInstance( LPUNKNOWN, REFIID, LPVOID* );
  26. STDMETHODIMP LockServer( BOOL );
  27. };
  28. #endif //_CLSSFACT_H_