clsfact.h
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:
系统编程
开发平台:
Visual C++
- //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\
- //
- // clsfact.h
- //
- // Definitions for the cdf viewer class factory..
- //
- // History:
- //
- // 3/16/97 edwardp Created.
- //
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Check for previous includes of this file.
- //
- #ifndef _CLSFACT_H_
- #define _CLSFACT_H_
- //
- // Prototype for function used in class factory to create objects.
- typedef HRESULT (*CREATEPROC)(IUnknown** ppIUnknown);
- //
- // Class definition for the class factory
- //
- class CCdfClassFactory : public IClassFactory
- {
- //
- // Methods
- //
- public:
- // Constructor
- CCdfClassFactory(CREATEPROC pfn);
- // IUnknown
- STDMETHODIMP QueryInterface(REFIID, void **);
- STDMETHODIMP_(ULONG) AddRef(void);
- STDMETHODIMP_(ULONG) Release(void);
- //IClassFactory
- STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void **);
- STDMETHODIMP LockServer(BOOL);
- private:
- // Destructor
- ~CCdfClassFactory(void);
- //
- // Members
- //
- private:
- ULONG m_cRef;
- CREATEPROC m_Create;
- };
- #endif // _CLSFACT_H_
English
