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.

48 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: urlcf.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 12-22-95 JohannP (Johann Posch) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef _URLCF_HXX_DEFINED_
  18. #define _URLCF_HXX_DEFINED_
  19. #include <urlint.h>
  20. #include <stdio.h>
  21. #include "urlmon.hxx"
  22. class CUrlClsFact : public IClassFactory
  23. {
  24. public:
  25. STDMETHOD(QueryInterface) (REFIID riid, LPVOID * ppv);
  26. STDMETHOD_(ULONG, AddRef) (void);
  27. STDMETHOD_(ULONG, Release) (void);
  28. STDMETHOD(CreateInstance) (LPUNKNOWN pUnkOuter, REFIID riid, LPVOID* ppv);
  29. STDMETHOD(LockServer) (BOOL fLock);
  30. static HRESULT Create(REFCLSID clsid, CUrlClsFact **ppCF);
  31. CUrlClsFact(REFCLSID clsid);
  32. ~CUrlClsFact();
  33. private:
  34. CRefCount _CRefs; // object refcount
  35. CRefCount _CLocks; // dll lock refcount
  36. CLSID _ClsID; // the class this CF can generate objects
  37. };
  38. HRESULT CreateAPP(REFCLSID rclsid, IUnknown *pUnkOuter, REFIID riid, IUnknown **ppUnk);
  39. #endif //_URLCF_HXX_DEFINED_
  40.