ICLASSF.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*
- * ICLASSF.H
- *
- * Definitions for a template Class Factory object with the
- * IClassFactory interface.
- *
- * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
- *
- * Kraig Brockschmidt, Microsoft
- * Internet : kraigb@microsoft.com
- * Compuserve: >INTERNET:kraigb@microsoft.com
- */
- #ifndef _ICLASSF_H_
- #define _ICLASSF_H_
- #include <inole.h>
- class CClassFactory;
- typedef class CClassFactory *PCClassFactory;
- class CClassFactory : public IClassFactory
- {
- protected:
- ULONG m_cRef; //Reference count on object
- public:
- CClassFactory(void);
- ~CClassFactory(void);
- //IUnknown interface members
- STDMETHODIMP QueryInterface(REFIID, LPVOID *);
- STDMETHODIMP_(ULONG) AddRef(void);
- STDMETHODIMP_(ULONG) Release(void);
- //IClassFactory members
- STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);
- STDMETHODIMP LockServer(BOOL);
- };
- #endif //_ICLASSF_H_