You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.1 KiB
86 lines
2.1 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
// File: N O T I F Y . H
|
|
//
|
|
// Contents: Implementation of INetConnectionNotifySink
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: shaunco 21 Aug 1998
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
|
|
#pragma once
|
|
#include <atlbase.h>
|
|
extern CComModule _Module;
|
|
#include <atlcom.h>
|
|
#include "netconp.h"
|
|
|
|
class ATL_NO_VTABLE CConnectionNotifySink :
|
|
public CComObjectRootEx <CComMultiThreadModel>,
|
|
public INetConnectionNotifySink
|
|
{
|
|
private:
|
|
// LPITEMIDLIST m_pidlFolder;
|
|
|
|
public:
|
|
BEGIN_COM_MAP(CConnectionNotifySink)
|
|
COM_INTERFACE_ENTRY(INetConnectionNotifySink)
|
|
END_COM_MAP()
|
|
|
|
CConnectionNotifySink() { /*m_pidlFolder = NULL;*/ };
|
|
~CConnectionNotifySink();
|
|
|
|
// INetConnectionNotifySink
|
|
STDMETHOD(ConnectionAdded) (
|
|
const NETCON_PROPERTIES_EX* pPropsEx);
|
|
|
|
STDMETHOD(ConnectionBandWidthChange) (
|
|
const GUID* pguidId);
|
|
|
|
STDMETHOD(ConnectionDeleted) (
|
|
const GUID* pguidId);
|
|
|
|
STDMETHOD(ConnectionModified) (
|
|
const NETCON_PROPERTIES_EX* pPropsEx);
|
|
|
|
STDMETHOD(ConnectionRenamed) (
|
|
const GUID* pguidId,
|
|
LPCWSTR pszwNewName);
|
|
|
|
STDMETHOD(ConnectionStatusChange) (
|
|
const GUID* pguidId,
|
|
NETCON_STATUS Status);
|
|
|
|
STDMETHOD(RefreshAll) ();
|
|
|
|
STDMETHOD(ConnectionAddressChange) (
|
|
const GUID* pguidId );
|
|
|
|
STDMETHOD(ShowBalloon) (
|
|
IN const GUID* pguidId,
|
|
IN const BSTR szCookie,
|
|
IN const BSTR szBalloonText);
|
|
|
|
STDMETHOD(DisableEvents) (
|
|
IN const BOOL fDisable,
|
|
IN const ULONG ulDisableTimeout);
|
|
|
|
public:
|
|
static HRESULT CreateInstance (
|
|
REFIID riid,
|
|
VOID** ppv);
|
|
};
|
|
|
|
// Helper functions for external modules
|
|
//
|
|
HRESULT HrGetNotifyConPoint(
|
|
IConnectionPoint ** ppConPoint);
|
|
|