windows-nt/Source/XPSP1/NT/com/oleutest/balls/common/actcf.hxx

74 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------
//
// File: actcf.hxx
//
// Contents: object activation test class factory
//
// Classes: CActClassFactory
//
// Functions: None
//
// History: 23-Nov-92 Rickhi Created
//
//--------------------------------------------------------------------
#ifndef __CACTCLASSFACTORY__
#define __CACTCLASSFACTORY__
#include <win4p.hxx>
extern "C" const GUID CLSID_TestSingleUse;
extern "C" const GUID CLSID_TestMultipleUse;
extern "C" const GUID CLSID_DistBind;
//+-------------------------------------------------------------------
//
// Class: CActClassFactory
//
// Purpose: object activation test class factory
//
// Interface:
//
// History: 23-Nov-92 Rickhi Created
//
// Notes:
//
//--------------------------------------------------------------------
class CActClassFactory : public IClassFactory
{
public:
CActClassFactory(REFCLSID rclsid, BOOL fServer);
~CActClassFactory(void);
// IUnknown
STDMETHOD(QueryInterface)(REFIID iid, void **ppv);
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
// IClassFactory
STDMETHOD(CreateInstance)(
IUnknown FAR* pUnkOuter,
REFIID riid,
LPVOID FAR* ppunkObject);
STDMETHOD(LockServer)(BOOL fLock);
private:
BOOL _fServer;
CLSID _clsid;
LONG _cRefs;
LONG _cLocks;
};
#endif // __CACTCLASSFACTORY__