Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

81 lines
1.9 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
//
//----------------------------------------------------------------------------
#pragma once
#include "nsbase.h"
#include "netconp.h"
class ATL_NO_VTABLE CConnectionNotifySink :
public CComObjectRootEx <CComObjectThreadModel>,
public INetConnectionNotifySink
{
private:
PCONFOLDPIDLFOLDER m_pidlFolder;
HRESULT HrUpdateIncomingConnection();
public:
BEGIN_COM_MAP(CConnectionNotifySink)
COM_INTERFACE_ENTRY(INetConnectionNotifySink)
END_COM_MAP()
CConnectionNotifySink() {};
~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,
PCWSTR 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);