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.

45 lines
1.1 KiB

  1. //**********************************************************************
  2. // File name: icf.h
  3. //
  4. // Definition of CClassFactory
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _ICF_H_)
  9. #define _ICF_H_
  10. class CSimpSvrApp;
  11. interface CClassFactory : IClassFactory
  12. {
  13. private:
  14. int m_nCount; // reference count
  15. CSimpSvrApp FAR * m_lpApp;
  16. public:
  17. CClassFactory::CClassFactory(CSimpSvrApp FAR * lpApp)
  18. {
  19. TestDebugOut("In CClassFactory's Constructor\r\n");
  20. m_lpApp = lpApp;
  21. m_nCount = 0;
  22. };
  23. CClassFactory::~CClassFactory()
  24. {
  25. TestDebugOut("In CClassFactory's Destructor\r\n");
  26. };
  27. // IUnknown Methods
  28. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  29. STDMETHODIMP_(ULONG) AddRef ();
  30. STDMETHODIMP_(ULONG) Release ();
  31. STDMETHODIMP CreateInstance (LPUNKNOWN pUnkOuter,
  32. REFIID riid,
  33. LPVOID FAR* ppvObject);
  34. STDMETHODIMP LockServer ( BOOL fLock);
  35. };
  36. #endif