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.
125 lines
2.4 KiB
125 lines
2.4 KiB
/*++
|
|
|
|
Copyright (C) 1996-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ClassFac.h
|
|
|
|
Abstract:
|
|
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#ifndef _ServerClassFactory_H
|
|
#define _ServerClassFactory_H
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
template <class Object,class ObjectInterface>
|
|
class CServerClassFactory : public IClassFactory
|
|
{
|
|
private:
|
|
|
|
long m_ReferenceCount ;
|
|
|
|
protected:
|
|
public:
|
|
|
|
CServerClassFactory () ;
|
|
~CServerClassFactory () ;
|
|
|
|
//IUnknown members
|
|
|
|
STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP_( ULONG ) AddRef () ;
|
|
STDMETHODIMP_( ULONG ) Release () ;
|
|
|
|
//IClassFactory members
|
|
|
|
STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP LockServer ( BOOL ) ;
|
|
};
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
class CServerProvSubSysClassFactory : public IClassFactory
|
|
{
|
|
private:
|
|
|
|
long m_ReferenceCount ;
|
|
|
|
protected:
|
|
public:
|
|
|
|
CServerProvSubSysClassFactory () ;
|
|
~CServerProvSubSysClassFactory () ;
|
|
|
|
//IUnknown members
|
|
|
|
STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP_( ULONG ) AddRef () ;
|
|
STDMETHODIMP_( ULONG ) Release () ;
|
|
|
|
//IClassFactory members
|
|
|
|
STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP LockServer ( BOOL ) ;
|
|
};
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
class CServerProvRefreshManagerClassFactory : public IClassFactory
|
|
{
|
|
private:
|
|
|
|
long m_ReferenceCount ;
|
|
|
|
protected:
|
|
public:
|
|
|
|
CServerProvRefreshManagerClassFactory () ;
|
|
~CServerProvRefreshManagerClassFactory () ;
|
|
|
|
//IUnknown members
|
|
|
|
STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP_( ULONG ) AddRef () ;
|
|
STDMETHODIMP_( ULONG ) Release () ;
|
|
|
|
//IClassFactory members
|
|
|
|
STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
|
|
STDMETHODIMP LockServer ( BOOL ) ;
|
|
};
|
|
|
|
|
|
#include <classfac.cpp>
|
|
|
|
#endif // _ServerClassFactory_H
|