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
11f341cf
Commit
11f341cf
authored
Nov 04, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented InternetGetConnectedStateExA.
parent
97cc28ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
internet.c
dlls/wininet/internet.c
+31
-1
wininet.spec
dlls/wininet/wininet.spec
+1
-0
No files found.
dlls/wininet/internet.c
View file @
11f341cf
...
...
@@ -644,8 +644,9 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
return
TRUE
;
}
/***********************************************************************
* InternetGetConnectedStateEx (WININET.@)
* InternetGetConnectedStateEx
W
(WININET.@)
*
* Return connected state
*
...
...
@@ -671,6 +672,35 @@ BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnecti
return
TRUE
;
}
/***********************************************************************
* InternetGetConnectedStateExA (WININET.@)
*/
BOOL
WINAPI
InternetGetConnectedStateExA
(
LPDWORD
lpdwStatus
,
LPSTR
lpszConnectionName
,
DWORD
dwNameLen
,
DWORD
dwReserved
)
{
LPWSTR
lpwszConnectionName
=
NULL
;
BOOL
rc
;
TRACE
(
"(%p, %s, %ld, 0x%08lx)
\n
"
,
lpdwStatus
,
debugstr_a
(
lpszConnectionName
),
dwNameLen
,
dwReserved
);
if
(
lpszConnectionName
&&
dwNameLen
>
0
)
lpwszConnectionName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwNameLen
*
sizeof
(
WCHAR
));
rc
=
InternetGetConnectedStateExW
(
lpdwStatus
,
lpwszConnectionName
,
dwNameLen
,
dwReserved
);
if
(
rc
&&
lpwszConnectionName
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwszConnectionName
,
-
1
,
lpszConnectionName
,
dwNameLen
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwszConnectionName
);
}
return
rc
;
}
/***********************************************************************
* InternetConnectW (WININET.@)
*
...
...
dlls/wininet/wininet.spec
View file @
11f341cf
...
...
@@ -126,6 +126,7 @@
@ stdcall InternetFindNextFileW(ptr ptr)
@ stub InternetGetCertByURL
@ stdcall InternetGetConnectedState(ptr long)
@ stdcall InternetGetConnectedStateExA(ptr ptr long long)
@ stdcall InternetGetConnectedStateExW(ptr ptr long long)
@ stdcall InternetGetCookieA(str str ptr long)
@ stdcall InternetGetCookieW(wstr wstr ptr long)
...
...
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