mirror of https://github.com/tongzx/nt5src
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.
73 lines
1.4 KiB
73 lines
1.4 KiB
//+-------------------------------------------------------------------
|
|
//
|
|
// 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__
|