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.
 
 
 
 
 
 

47 lines
1.2 KiB

//+---------------------------------------------------------------------------
//
// 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, DWORD dwId = DLD_PROTOCOL_NONE);
~CUrlClsFact();
private:
CRefCount _CRefs; // object refcount
CRefCount _CLocks; // dll lock refcount
CLSID _ClsID; // the class this CF can generate objects
DWORD _dwId;
};
#endif //_URLCF_HXX_DEFINED_