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.

34 lines
887 B

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