CLASSFAC.H

//-------------------------------------------------------------------- 
// Microsoft OLE DB Sample Provider
// (C) Copyright 1994 - 1996 Microsoft Corporation. All Rights Reserved.
//
// @doc
//
// @module CLASSFAC.H | Class Definitions for CClassFactory and
// DLL Entry Points
//
//
#ifndef _CLASSFAC_H_
#define _CLASSFAC_H_



// Classes -------------------------------------------------------------------


//----------------------------------------------------------------------------
// @class CClassFactory
//
class CClassFactory : public IClassFactory//@base public | IClassFactory
{
protected: //@access protected
//@cmember Reference count
ULONGm_cRef;

public: // @access public
//@cmember Constructor
CClassFactory(void);
//@cmember Destructor
~CClassFactory(void);

//IUnknown members
//@cmember Request an Interface
STDMETHODIMPQueryInterface(REFIID, LPVOID *);
//@cmember Increments the Reference count
STDMETHODIMP_(ULONG)AddRef(void);
//@cmember Decrements the Reference count
STDMETHODIMP_(ULONG)Release(void);

//IClassFactory members
//@cmember Instantiates an uninitialized instance of an object
STDMETHODIMPCreateInstance(LPUNKNOWN, REFIID, LPVOID *);
//@cmember Lock Object so that it can not be unloaded
STDMETHODIMPLockServer(BOOL);
};

#endif