windows-nt/Source/XPSP1/NT/com/oleutest/balls/common/cfballs.hxx
2020-09-26 16:20:57 +08:00

39 lines
521 B
C++

class CFactory : public IClassFactory
{
public:
CFactory(REFCLSID rclsid, BOOL fServer);
~CFactory(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;
};