windows-nt/Source/XPSP1/NT/com/mobile/sens/conn/senssink/cimpsens.hxx

85 lines
1.7 KiB
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) Microsoft Corporation, 1997 - 1999
Module Name:
cimpsens.hxx
Abstract:
Contains the definition of the CImpISensNetwork interface.
Author:
Gopal Parupudi <GopalP>
[Notes:]
optional-notes
Revision History:
GopalP 11/17/1997 Start.
--*/
#ifndef __CIMPSENS_HXX__
#define __CIMPSENS_HXX__
#include "sensevts.h"
typedef void (FAR PASCAL *LPFNDESTROYED)(void);
class CImpISensNetwork : public ISensNetwork
{
public:
CImpISensNetwork(void);
CImpISensNetwork(LPFNDESTROYED);
~CImpISensNetwork(void);
//
// IUnknown
//
STDMETHOD (QueryInterface) (REFIID, LPVOID *);
STDMETHOD_(ULONG, AddRef) (void);
STDMETHOD_(ULONG, Release) (void);
//
// IDispatch
//
STDMETHOD (GetTypeInfoCount) (UINT *);
STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo **);
STDMETHOD (GetIDsOfNames) (REFIID, LPOLESTR *, UINT, LCID, DISPID *);
STDMETHOD (Invoke) (DISPID, REFIID, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
//
// ISensNetwork
//
STDMETHOD_(void, ConnectionMade) (BSTR, ULONG, SENS_QOCINFO);
STDMETHOD_(void, ConnectionMadeNoQOCInfo) (BSTR, ULONG);
STDMETHOD_(void, ConnectionLost) (BSTR, ULONG);
STDMETHOD_(void, BeforeDisconnect) (BSTR, ULONG);
STDMETHOD_(void, DestinationReachable) (BSTR, BSTR, ULONG, SENS_QOCINFO);
STDMETHOD_(void, DestinationReachableNoQOCInfo) (BSTR, BSTR, ULONG);
STDMETHOD_(void, FooFunc) (BSTR);
private:
ULONG m_cRef;
LPFNDESTROYED m_pfnDestroy;
};
typedef CImpISensNetwork FAR * LPCIMPISENSNETWORK;
#endif // __CIMPSENS_HXX__