Commit afb98a38 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

netprofm: Create a connection point object for INetworkConnectionEvents.

parent 2655ca25
...@@ -551,7 +551,8 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo ...@@ -551,7 +551,8 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
return E_POINTER; return E_POINTER;
if (IsEqualGUID( riid, &IID_INetworkListManagerEvents ) || if (IsEqualGUID( riid, &IID_INetworkListManagerEvents ) ||
IsEqualGUID( riid, &IID_INetworkCostManagerEvents )) IsEqualGUID( riid, &IID_INetworkCostManagerEvents ) ||
IsEqualGUID( riid, &IID_INetworkConnectionEvents ))
return connection_point_create( cp, riid, iface ); return connection_point_create( cp, riid, iface );
FIXME( "interface %s not implemented\n", debugstr_guid(riid) ); FIXME( "interface %s not implemented\n", debugstr_guid(riid) );
......
...@@ -116,6 +116,10 @@ static void test_INetworkListManager( void ) ...@@ -116,6 +116,10 @@ static void test_INetworkListManager( void )
ok( hr == S_OK || hr == CO_E_FAILEDTOIMPERSONATE, "got %08x\n", hr ); ok( hr == S_OK || hr == CO_E_FAILEDTOIMPERSONATE, "got %08x\n", hr );
if (hr == S_OK) IConnectionPoint_Release( pt ); if (hr == S_OK) IConnectionPoint_Release( pt );
hr = IConnectionPointContainer_FindConnectionPoint( cpc, &IID_INetworkConnectionEvents, &pt );
ok( hr == S_OK || hr == CO_E_FAILEDTOIMPERSONATE, "got %08x\n", hr );
if (hr == S_OK) IConnectionPoint_Release( pt );
IConnectionPointContainer_Release( cpc ); IConnectionPointContainer_Release( cpc );
INetworkListManager_Release( mgr ); INetworkListManager_Release( mgr );
} }
......
...@@ -175,3 +175,25 @@ interface INetworkListManagerEvents : IUnknown ...@@ -175,3 +175,25 @@ interface INetworkListManagerEvents : IUnknown
HRESULT ConnectivityChanged( HRESULT ConnectivityChanged(
[in] NLM_CONNECTIVITY newConnectivity); [in] NLM_CONNECTIVITY newConnectivity);
} }
[
object,
oleautomation,
pointer_default(unique),
uuid(dcb00007-570f-4a9b-8d69-199fdba5723b)
]
interface INetworkConnectionEvents : IUnknown
{
typedef enum NLM_CONNECTION_PROPERTY_CHANGE
{
NLM_CONNECTION_PROPERTY_CHANGE_AUTHENTICATION = 1
} NLM_CONNECTION_PROPERTY_CHANGE;
HRESULT NetworkConnectionConnectivityChanged(
[in] GUID connectionId,
[in] NLM_CONNECTIVITY newConnectivity);
HRESULT NetworkConnectionPropertyChanged(
[in] GUID connectionId,
[in] NLM_CONNECTION_PROPERTY_CHANGE flags);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment