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.

49 lines
886 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: ClsFact.h
  7. //
  8. // Contents: OneStop ClassFactory
  9. //
  10. // Classes: CClassFactory
  11. //
  12. // Notes:
  13. //
  14. // History: 05-Nov-97 rogerg Created.
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _CLSFACT_
  18. #define _CLSFACT_
  19. //This class factory for OneStop EXE
  20. class CClassFactory : public IClassFactory
  21. {
  22. protected:
  23. ULONG m_cRef;
  24. public:
  25. CClassFactory();
  26. ~CClassFactory();
  27. //IUnknown members
  28. STDMETHODIMP QueryInterface( REFIID, LPVOID* );
  29. STDMETHODIMP_(ULONG) AddRef();
  30. STDMETHODIMP_(ULONG) Release();
  31. //IClassFactory members
  32. STDMETHODIMP CreateInstance( LPUNKNOWN, REFIID, LPVOID* );
  33. STDMETHODIMP LockServer( BOOL );
  34. };
  35. #endif // _CLSFACT_