netprofm: Create a connection point object for INetworkConnectionEvents.
This commit is contained in:
parent
2655ca2538
commit
afb98a38ae
|
@ -551,7 +551,8 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
|
|||
return E_POINTER;
|
||||
|
||||
if (IsEqualGUID( riid, &IID_INetworkListManagerEvents ) ||
|
||||
IsEqualGUID( riid, &IID_INetworkCostManagerEvents ))
|
||||
IsEqualGUID( riid, &IID_INetworkCostManagerEvents ) ||
|
||||
IsEqualGUID( riid, &IID_INetworkConnectionEvents ))
|
||||
return connection_point_create( cp, riid, iface );
|
||||
|
||||
FIXME( "interface %s not implemented\n", debugstr_guid(riid) );
|
||||
|
|
|
@ -116,6 +116,10 @@ static void test_INetworkListManager( void )
|
|||
ok( hr == S_OK || hr == CO_E_FAILEDTOIMPERSONATE, "got %08x\n", hr );
|
||||
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 );
|
||||
INetworkListManager_Release( mgr );
|
||||
}
|
||||
|
|
|
@ -175,3 +175,25 @@ interface INetworkListManagerEvents : IUnknown
|
|||
HRESULT ConnectivityChanged(
|
||||
[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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue