Leaked source code of windows server 2003
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.0 KiB

  1. /*****************************************************************************\
  2. * MODULE: TFactory.h
  3. *
  4. * PURPOSE: Implementation of COM interface for BidiSpooler
  5. *
  6. * Copyright (C) 2000 Microsoft Corporation
  7. *
  8. * History:
  9. *
  10. * 03/07/00 Weihai Chen (weihaic) Created
  11. *
  12. \*****************************************************************************/
  13. #ifndef _TFACTORY
  14. #define _TFACTORY
  15. ///////////////////////////////////////////////////////////
  16. //
  17. // Class factory
  18. //
  19. class TFactory : public IClassFactory
  20. {
  21. public:
  22. // IUnknown
  23. STDMETHOD(QueryInterface)(
  24. REFIID iid,
  25. void** ppv) ;
  26. STDMETHOD_ (ULONG, AddRef) () ;
  27. STDMETHOD_ (ULONG, Release)() ;
  28. // Interface IClassFactory
  29. STDMETHOD (CreateInstance) (
  30. IN IUnknown* pUnknownOuter,
  31. IN REFIID iid,
  32. OUT void** ppv) ;
  33. STDMETHOD (LockServer) (
  34. IN BOOL bLock) ;
  35. TFactory(
  36. IN REFGUID ClassId);
  37. ~TFactory();
  38. private:
  39. long m_cRef ;
  40. GUID m_ClassId;
  41. } ;
  42. #endif