Windows2003-3790/inetcore/urlmon/eapp/urlcf.hxx
2020-09-30 16:53:55 +02:00

49 lines
1.3 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: urlcf.hxx
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 12-22-95 JohannP (Johann Posch) Created
//
//----------------------------------------------------------------------------
#ifndef _URLCF_HXX_DEFINED_
#define _URLCF_HXX_DEFINED_
#include <urlint.h>
#include <stdio.h>
#include "urlmon.hxx"
class CUrlClsFact : public IClassFactory
{
public:
STDMETHOD(QueryInterface) (REFIID riid, LPVOID * ppv);
STDMETHOD_(ULONG, AddRef) (void);
STDMETHOD_(ULONG, Release) (void);
STDMETHOD(CreateInstance) (LPUNKNOWN pUnkOuter, REFIID riid, LPVOID* ppv);
STDMETHOD(LockServer) (BOOL fLock);
static HRESULT Create(REFCLSID clsid, CUrlClsFact **ppCF);
CUrlClsFact(REFCLSID clsid);
~CUrlClsFact();
private:
CRefCount _CRefs; // object refcount
CRefCount _CLocks; // dll lock refcount
CLSID _ClsID; // the class this CF can generate objects
};
HRESULT CreateAPP(REFCLSID rclsid, IUnknown *pUnkOuter, REFIID riid, IUnknown **ppUnk);
#endif //_URLCF_HXX_DEFINED_