Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
cdbab7dd
Commit
cdbab7dd
authored
Oct 28, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fixed declaration of INTERNET_STATUS_CALLBACK.
parent
ee5a4400
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
http.c
dlls/wininet/tests/http.c
+19
-19
wininet.h
include/wininet.h
+1
-1
No files found.
dlls/wininet/tests/http.c
View file @
cdbab7dd
...
...
@@ -37,7 +37,7 @@ static HANDLE hCompleteEvent;
static
VOID
WINAPI
callback
(
HINTERNET
hInternet
,
DWORD
dwContext
,
DWORD
_PTR
dwContext
,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInformation
,
DWORD
dwStatusInformationLength
...
...
@@ -46,27 +46,27 @@ static VOID WINAPI callback(
switch
(
dwInternetStatus
)
{
case
INTERNET_STATUS_RESOLVING_NAME
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_RESOLVING_NAME
\"
%s
\"
%d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_RESOLVING_NAME
\"
%s
\"
%d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
(
LPCSTR
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_NAME_RESOLVED
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_NAME_RESOLVED
\"
%s
\"
%d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_NAME_RESOLVED
\"
%s
\"
%d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
(
LPCSTR
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_CONNECTING_TO_SERVER
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_CONNECTING_TO_SERVER
\"
%s
\"
%d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_CONNECTING_TO_SERVER
\"
%s
\"
%d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
(
LPCSTR
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_CONNECTED_TO_SERVER
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_CONNECTED_TO_SERVER
\"
%s
\"
%d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_CONNECTED_TO_SERVER
\"
%s
\"
%d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
(
LPCSTR
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_SENDING_REQUEST
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_SENDING_REQUEST %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_SENDING_REQUEST %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
...
...
@@ -74,12 +74,12 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
DWORD
),
"info length should be sizeof(DWORD) instead of %d
\n
"
,
dwStatusInformationLength
);
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_REQUEST_SENT 0x%x %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_REQUEST_SENT 0x%x %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
DWORD
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_RECEIVING_RESPONSE
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_RECEIVING_RESPONSE %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_RECEIVING_RESPONSE %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
...
...
@@ -87,27 +87,27 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
DWORD
),
"info length should be sizeof(DWORD) instead of %d
\n
"
,
dwStatusInformationLength
);
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_RESPONSE_RECEIVED 0x%x %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_RESPONSE_RECEIVED 0x%x %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
DWORD
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_CTL_RESPONSE_RECEIVED
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_CTL_RESPONSE_RECEIVED %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_CTL_RESPONSE_RECEIVED %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_PREFETCH
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_PREFETCH %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_PREFETCH %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_CLOSING_CONNECTION
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_CLOSING_CONNECTION %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_CLOSING_CONNECTION %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_CONNECTION_CLOSED
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_CONNECTION_CLOSED %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_CONNECTION_CLOSED %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
...
...
@@ -115,7 +115,7 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
HINTERNET
),
"info length should be sizeof(HINTERNET) instead of %d
\n
"
,
dwStatusInformationLength
);
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_HANDLE_CREATED %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_HANDLE_CREATED %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
HINTERNET
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
...
...
@@ -123,7 +123,7 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
HINTERNET
),
"info length should be sizeof(HINTERNET) instead of %d
\n
"
,
dwStatusInformationLength
);
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_HANDLE_CLOSING %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_HANDLE_CLOSING %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
HINTERNET
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
...
...
@@ -133,24 +133,24 @@ static VOID WINAPI callback(
ok
(
dwStatusInformationLength
==
sizeof
(
INTERNET_ASYNC_RESULT
),
"info length should be sizeof(INTERNET_ASYNC_RESULT) instead of %d
\n
"
,
dwStatusInformationLength
);
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_REQUEST_COMPLETE {%d,%d} %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_REQUEST_COMPLETE {%d,%d} %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
iar
->
dwResult
,
iar
->
dwError
,
dwStatusInformationLength
);
SetEvent
(
hCompleteEvent
);
break
;
}
case
INTERNET_STATUS_REDIRECT
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_REDIRECT
\"
%s
\"
%d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_REDIRECT
\"
%s
\"
%d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
(
LPCSTR
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_INTERMEDIATE_RESPONSE
:
trace
(
"%04x:Callback %p 0x%x INTERNET_STATUS_INTERMEDIATE_RESPONSE %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x INTERNET_STATUS_INTERMEDIATE_RESPONSE %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
default:
trace
(
"%04x:Callback %p 0x%x %d %p %d
\n
"
,
trace
(
"%04x:Callback %p 0x%
l
x %d %p %d
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
dwInternetStatus
,
lpvStatusInformation
,
dwStatusInformationLength
);
}
...
...
include/wininet.h
View file @
cdbab7dd
...
...
@@ -557,7 +557,7 @@ BOOLAPI InternetGetLastResponseInfoA(LPDWORD ,LPSTR lpszBuffer ,LPDWORD);
BOOLAPI
InternetGetLastResponseInfoW
(
LPDWORD
,
LPWSTR
lpszBuffer
,
LPDWORD
);
#define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo)
typedef
VOID
(
CALLBACK
*
INTERNET_STATUS_CALLBACK
)(
HINTERNET
,
DWORD
,
DWORD
,
typedef
VOID
(
CALLBACK
*
INTERNET_STATUS_CALLBACK
)(
HINTERNET
,
DWORD
_PTR
,
DWORD
,
LPVOID
lpvStatusInformation
,
DWORD
);
typedef
INTERNET_STATUS_CALLBACK
*
LPINTERNET_STATUS_CALLBACK
;
...
...
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