EXIT.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- //+--------------------------------------------------------------------------
- //
- // Microsoft Windows
- // Copyright (C) Microsoft Corporation, 1996-1997
- //
- // File: exit.cpp
- //
- // Contents: CCertExit definition
- //
- //---------------------------------------------------------------------------
- #include "resource.h" // main symbols
- #include <certexit.h>
- /////////////////////////////////////////////////////////////////////////////
- // certexit
- class CCertExit:
- public CComDualImpl<ICertExit, &IID_ICertExit, &LIBID_CERTEXITLib>,
- public ISupportErrorInfo,
- public CComObjectRoot,
- public CComCoClass<CCertExit, &CLSID_CCertExit>
- {
- public:
- CCertExit() { m_strConfig = NULL; }
- ~CCertExit();
- BEGIN_COM_MAP(CCertExit)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ICertExit)
- COM_INTERFACE_ENTRY(ISupportErrorInfo)
- END_COM_MAP()
- DECLARE_NOT_AGGREGATABLE(CCertExit)
- DECLARE_REGISTRY(
- CCertExit,
- wszCLASS_CERTEXIT TEXT(".1"),
- wszCLASS_CERTEXIT,
- IDS_CERTEXIT_DESC,
- THREADFLAGS_BOTH)
- // ISupportsErrorInfo
- STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
- // ICertExit
- public:
- STDMETHOD(Initialize)(
- /* [in] */ BSTR const strConfig,
- /* [retval][out] */ LONG __RPC_FAR *pEventMask);
- STDMETHOD(Notify)(
- /* [in] */ LONG Event,
- /* [in] */ LONG Context);
- STDMETHOD(GetDescription)(
- /* [retval][out] */ BSTR *pstrDescription);
- private:
- // Member variables & private methods here:
- BSTR m_strConfig;
- };