Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c42f38fd
Commit
c42f38fd
authored
Jul 24, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Create a connection point object for INetworkCostManagerEvents.
parent
516b21f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
list.c
dlls/netprofm/list.c
+2
-1
list.c
dlls/netprofm/tests/list.c
+5
-1
netlistmgr.idl
include/netlistmgr.idl
+17
-0
No files found.
dlls/netprofm/list.c
View file @
c42f38fd
...
...
@@ -489,7 +489,8 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
if
(
!
riid
||
!
cp
)
return
E_POINTER
;
if
(
IsEqualGUID
(
riid
,
&
IID_INetworkListManagerEvents
))
if
(
IsEqualGUID
(
riid
,
&
IID_INetworkListManagerEvents
)
||
IsEqualGUID
(
riid
,
&
IID_INetworkCostManagerEvents
))
return
connection_point_create
(
cp
,
riid
,
iface
);
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
)
);
...
...
dlls/netprofm/tests/list.c
View file @
c42f38fd
...
...
@@ -103,8 +103,12 @@ static void test_INetworkListManager( void )
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
memcmp
(
&
iid
,
&
IID_INetworkListManagerEvents
,
sizeof
(
iid
)
),
"Expected iid to be IID_INetworkListManagerEvents
\n
"
);
IConnectionPoint_Release
(
pt
);
hr
=
IConnectionPointContainer_FindConnectionPoint
(
cpc
,
&
IID_INetworkCostManagerEvents
,
&
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
);
}
...
...
include/netlistmgr.idl
View file @
c42f38fd
...
...
@@ -68,6 +68,8 @@ typedef struct NLM_SOCKADDR
BYTE
data
[
128
]
;
}
NLM_SOCKADDR
;
const
UINT32
NLM_UNKNOWN_DATAPLAN_STATUS
=
0
xffffffff
;
typedef
struct
NLM_USAGE_DATA
{
DWORD
UsageInMegabytes
;
...
...
@@ -108,6 +110,21 @@ interface INetworkCostManager : IUnknown
}
[
object
,
pointer_default
(
unique
),
uuid
(
dcb00009
-
570
f
-
4
a9b
-
8
d69
-
199
fdba5723b
)
]
interface
INetworkCostManagerEvents
:
IUnknown
{
HRESULT
CostChanged
(
[
in
]
DWORD
newCost
,
[
in
,
unique
]
NLM_SOCKADDR
*
pDestAddr
)
;
HRESULT
DataPlanStatusChanged
(
[
in
,
unique
]
NLM_SOCKADDR
*
pDestAddr
)
;
}
[
dual
,
object
,
oleautomation
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment