ishutdownsink.h
来自「OPC Client 源代码」· C头文件 代码 · 共 41 行
H
41 行
// IShutdownSink.h: interface for the IShutdownSink class.
//
//////////////////////////////////////////////////////////////////////
//IOPCShutdown:为一个点连接对象,当服务器对象需要关闭时调用ShutdownRequest 方法。
// 客户端将要释放和这个服务器对象相关的连接和对象。
//IOPCShutdown:the client must create an object that supports
// both the IUnknown and IOPCShutdown Interfase.
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ISHUTDOWNSINK_H__D79C4481_0CE6_4799_A33A_6F3CBBBAB055__INCLUDED_)
#define AFX_ISHUTDOWNSINK_H__D79C4481_0CE6_4799_A33A_6F3CBBBAB055__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "OPCData.h"
class COPCServer;
class IShutdownSink : public IOPCShutdown
{
public:
IShutdownSink (COPCServer *pServer);
~IShutdownSink ();
// IUnknown Methods
STDMETHODIMP QueryInterface (REFIID iid, LPVOID *ppInterface);
STDMETHODIMP_(ULONG) AddRef ();
STDMETHODIMP_(ULONG) Release ();
// IOPCShutdown Methods
STDMETHODIMP ShutdownRequest (LPCWSTR lpwszReason);
private:
DWORD m_cnRef;
COPCServer *m_pServer;
};
#endif // !defined(AFX_ISHUTDOWNSINK_H__D79C4481_0CE6_4799_A33A_6F3CBBBAB055__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?