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.
38 lines
521 B
38 lines
521 B
|
|
|
|
|
|
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;
|
|
};
|