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.

37 lines
1015 B

  1. //==========================================================================
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright 1998 - 1999 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef _SYNCHNDLR_H
  12. #define _SYNCHNDLR_H
  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 FAR *);
  22. STDMETHODIMP_(ULONG) AddRef();
  23. STDMETHODIMP_(ULONG) Release();
  24. //IClassFactory members
  25. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR *);
  26. STDMETHODIMP LockServer(BOOL);
  27. };
  28. typedef CClassFactory *LPCClassFactory;
  29. #endif // _SYNCHNDLR_H