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
8b69bf72
Commit
8b69bf72
authored
May 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added Switch implementation.
parent
675fd219
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
binding.c
dlls/urlmon/binding.c
+28
-2
No files found.
dlls/urlmon/binding.c
View file @
8b69bf72
...
...
@@ -78,6 +78,7 @@ struct ProtocolStream {
#define STREAM(x) ((IStream*) &(x)->lpStreamVtbl)
#define WM_MK_ONPROGRESS (WM_USER+100)
#define WM_MK_CONTINUE (WM_USER+101)
typedef
struct
{
Binding
*
binding
;
...
...
@@ -87,6 +88,11 @@ typedef struct {
LPWSTR
status_text
;
}
on_progress_data
;
typedef
struct
{
Binding
*
binding
;
PROTOCOLDATA
*
data
;
}
switch_data
;
static
LRESULT
WINAPI
notif_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
msg
)
{
...
...
@@ -104,6 +110,15 @@ static LRESULT WINAPI notif_wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
return
0
;
}
case
WM_MK_CONTINUE
:
{
switch_data
*
data
=
(
switch_data
*
)
lParam
;
IInternetProtocol_Continue
(
data
->
binding
->
protocol
,
data
->
data
);
IBinding_Release
(
BINDING
(
data
->
binding
));
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
0
;
}
}
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
@@ -631,8 +646,19 @@ static HRESULT WINAPI InternetProtocolSink_Switch(IInternetProtocolSink *iface,
PROTOCOLDATA
*
pProtocolData
)
{
Binding
*
This
=
PROTSINK_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pProtocolData
);
return
E_NOTIMPL
;
switch_data
*
data
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pProtocolData
);
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
switch_data
));
IBinding_AddRef
(
BINDING
(
This
));
data
->
binding
=
This
;
data
->
data
=
pProtocolData
;
PostMessageW
(
This
->
notif_hwnd
,
WM_MK_CONTINUE
,
0
,
(
LPARAM
)
data
);
return
S_OK
;
}
static
HRESULT
WINAPI
InternetProtocolSink_ReportProgress
(
IInternetProtocolSink
*
iface
,
...
...
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