windows-nt/Source/XPSP1/NT/com/oleutest/simpsvr/iec.h
2020-09-26 16:20:57 +08:00

44 lines
1.1 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//**********************************************************************
// File name: iec.h
//
// Definition of CExternalConnection
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _IEC_H_)
#define _IEC_H_
#include <ole2.h>
#include "obj.h"
class CSimpSvrObj;
interface CExternalConnection : public IExternalConnection
{
private:
CSimpSvrObj FAR * m_lpObj; // Ptr to object
DWORD m_dwStrong; // Connection Count
public:
CExternalConnection::CExternalConnection(CSimpSvrObj FAR * lpSimpSvrObj)
{
m_lpObj = lpSimpSvrObj;
m_dwStrong = 0;
};
CExternalConnection::~CExternalConnection() {};
// *** IUnknown methods ***
STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
STDMETHODIMP_(ULONG) AddRef ();
STDMETHODIMP_(ULONG) Release ();
// *** IExternalConnection methods ***
STDMETHODIMP_(DWORD) AddConnection (DWORD extconn, DWORD reserved);
STDMETHODIMP_(DWORD) ReleaseConnection (DWORD extconn, DWORD reserved, BOOL fLastReleaseCloses);
};
#endif