summaryrefslogtreecommitdiffstats
path: root/private/oleutest/balls/common/actcf.hxx
blob: 243b76a011d3ecd8d09230fa7c16727d01f49ae1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//+-------------------------------------------------------------------
//
//  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__