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
c1c434d1
Commit
c1c434d1
authored
Sep 02, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Implement INetworkListManager::IsConnectedToInternet and…
netprofm: Implement INetworkListManager::IsConnectedToInternet and INetworkListManager::IsConnected.
parent
a0085f70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
list.c
dlls/netprofm/list.c
+26
-2
No files found.
dlls/netprofm/list.c
View file @
c1c434d1
...
@@ -1249,20 +1249,44 @@ static HRESULT WINAPI list_manager_IsConnectedToInternet(
...
@@ -1249,20 +1249,44 @@ static HRESULT WINAPI list_manager_IsConnectedToInternet(
INetworkListManager
*
iface
,
INetworkListManager
*
iface
,
VARIANT_BOOL
*
pbIsConnected
)
VARIANT_BOOL
*
pbIsConnected
)
{
{
FIXME
(
"%p, %p
\n
"
,
iface
,
pbIsConnected
);
struct
list_manager
*
mgr
=
impl_from_INetworkListManager
(
iface
);
struct
network
*
network
;
TRACE
(
"%p, %p
\n
"
,
iface
,
pbIsConnected
);
LIST_FOR_EACH_ENTRY
(
network
,
&
mgr
->
networks
,
struct
network
,
entry
)
{
if
(
network
->
connected_to_internet
)
{
*
pbIsConnected
=
VARIANT_TRUE
;
*
pbIsConnected
=
VARIANT_TRUE
;
return
S_OK
;
return
S_OK
;
}
}
*
pbIsConnected
=
VARIANT_FALSE
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
list_manager_IsConnected
(
static
HRESULT
WINAPI
list_manager_IsConnected
(
INetworkListManager
*
iface
,
INetworkListManager
*
iface
,
VARIANT_BOOL
*
pbIsConnected
)
VARIANT_BOOL
*
pbIsConnected
)
{
{
FIXME
(
"%p, %p
\n
"
,
iface
,
pbIsConnected
);
struct
list_manager
*
mgr
=
impl_from_INetworkListManager
(
iface
);
struct
network
*
network
;
TRACE
(
"%p, %p
\n
"
,
iface
,
pbIsConnected
);
LIST_FOR_EACH_ENTRY
(
network
,
&
mgr
->
networks
,
struct
network
,
entry
)
{
if
(
network
->
connected
)
{
*
pbIsConnected
=
VARIANT_TRUE
;
*
pbIsConnected
=
VARIANT_TRUE
;
return
S_OK
;
return
S_OK
;
}
}
*
pbIsConnected
=
VARIANT_FALSE
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
list_manager_GetConnectivity
(
static
HRESULT
WINAPI
list_manager_GetConnectivity
(
...
...
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