30 lines
763 B
C++
30 lines
763 B
C++
#ifndef _CLASSFAC_H_
|
|
#define _CLASSFAC_H_
|
|
|
|
//****************************************************************************
|
|
// CClassFactory definition
|
|
//****************************************************************************
|
|
//
|
|
class CClassFactory : public IClassFactory
|
|
{
|
|
private:
|
|
ULONG cRef;
|
|
|
|
public:
|
|
// Constructor
|
|
CClassFactory(void);
|
|
|
|
// IUnknown
|
|
STDMETHODIMP QueryInterface (REFIID iid, void **ppv);
|
|
STDMETHODIMP_(ULONG) AddRef (void);
|
|
STDMETHODIMP_(ULONG) Release (void);
|
|
|
|
// IClassFactory
|
|
STDMETHODIMP CreateInstance (LPUNKNOWN punkOuter, REFIID iid, void **ppv);
|
|
STDMETHODIMP LockServer (BOOL fLock);
|
|
};
|
|
|
|
extern CClassFactory* g_pClassFactory;
|
|
|
|
#endif // ! _CLASSFAC_H_
|