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.

44 lines
1.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Confidential. Copyright (c) Microsoft Corporation 1999. All rights reserved
  4. //
  5. // File: Factory.h
  6. //
  7. // Description:
  8. //
  9. // History: 8-20-99 leonardm Created
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////////
  12. #ifndef _FACTORY_H__CB339D7F_83AC_4dd4_9DD3_C7737D698CD3__INCLUDED
  13. #define _FACTORY_H__CB339D7F_83AC_4dd4_9DD3_C7737D698CD3__INCLUDED
  14. ///////////////////////////////////////////////////////////////////////////////////
  15. //
  16. // Class:
  17. //
  18. // Description:
  19. //
  20. // History: 8/20/99 leonardm Created.
  21. //
  22. ///////////////////////////////////////////////////////////////////////////////////
  23. class CProvFactory : public IClassFactory
  24. {
  25. private:
  26. long m_cRef;
  27. public:
  28. CProvFactory();
  29. ~CProvFactory();
  30. // From IUnknown
  31. STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppv);
  32. STDMETHOD_(ULONG, AddRef)();
  33. STDMETHOD_(ULONG, Release)();
  34. // From IClassFactory
  35. STDMETHOD(CreateInstance)(LPUNKNOWN punk, REFIID riid, LPVOID* ppv);
  36. STDMETHOD(LockServer)(BOOL bLock);
  37. };
  38. #endif // _FACTORY_H__CB339D7F_83AC_4dd4_9DD3_C7737D698CD3__INCLUDED