ICLASSF.H

/* 
* ICLASSF.H
*
* Definitions for a template Class Factory object with the
* IClassFactory interface.
*
* Copyright (c)1993-1996 Microsoft Corporation, All Rights Reserved
*
* Kraig Brockschmidt, Software Design Engineer
* Microsoft Systems Developer Relations
*
* Internet : kraigb@microsoft.com
* Compuserve: >INTERNET:kraigb@microsoft.com
*/


#ifndef _ICLASSF_H_
#define _ICLASSF_H_

class CClassFactory;
typedef class CClassFactory *PCClassFactory;

class CClassFactory : public IClassFactory
{
protected:
ULONG m_cRef; //Reference count on object

public:
CClassFactory(void);
~CClassFactory(void);

//IUnknown interface members
STDMETHODIMP QueryInterface(REFIID, LPVOID *);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);

//IClassFactory members
STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);
STDMETHODIMP LockServer(BOOL);
};


#endif //_ICLASSF_H_