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.

33 lines
770 B

  1. /****************************************************************************/
  2. // factory.h
  3. //
  4. // TSLI class factory definition.
  5. //
  6. // Copyright (C) 2000 Microsoft Corporation
  7. /****************************************************************************/
  8. #ifndef __FACTORY_H
  9. #define __FACTORY_H
  10. class CClassFactory : public IClassFactory
  11. {
  12. protected:
  13. long m_RefCount;
  14. public:
  15. CClassFactory() : m_RefCount(0) {}
  16. // Standard COM methods
  17. STDMETHODIMP QueryInterface(REFIID, void **);
  18. STDMETHODIMP_(ULONG) AddRef();
  19. STDMETHODIMP_(ULONG) Release();
  20. // IClassFactory COM interfaces
  21. STDMETHODIMP CreateInstance(IUnknown *, REFIID, LPVOID *);
  22. STDMETHODIMP LockServer(BOOL);
  23. };
  24. #endif // __FACTORY_H