?? ishutdownsink.h
字號:
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -