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
c41bcd89
Commit
c41bcd89
authored
Apr 07, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IInternetProtocolSink interface stub implementation to MimeFilter object.
parent
11a6f353
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
mimefilter.c
dlls/urlmon/mimefilter.c
+71
-0
No files found.
dlls/urlmon/mimefilter.c
View file @
c41bcd89
...
...
@@ -23,11 +23,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
const
IInternetProtocolVtbl
*
lpIInternetProtocolVtbl
;
const
IInternetProtocolSinkVtbl
*
lpIInternetProtocolSinkVtbl
;
LONG
ref
;
}
MimeFilter
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpIInternetProtocolVtbl)
#define PROTOCOLSINK(x) ((IInternetProtocolSink*) &(x)->lpIInternetProtocolSinkVtbl)
#define PROTOCOL_THIS(iface) DEFINE_THIS(MimeFilter, IInternetProtocol, iface)
...
...
@@ -45,6 +47,9 @@ static HRESULT WINAPI MimeFilterProtocol_QueryInterface(IInternetProtocol *iface
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocol
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocol %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PROTOCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocolSink
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocolSink %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PROTOCOLSINK
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -174,6 +179,71 @@ static const IInternetProtocolVtbl MimeFilterProtocolVtbl = {
MimeFilterProtocol_UnlockRequest
};
#define PROTSINK_THIS(iface) DEFINE_THIS(MimeFilter, IInternetProtocolSink, iface)
static
HRESULT
WINAPI
MimeFilterSink_QueryInterface
(
IInternetProtocolSink
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
return
IInternetProtocol_QueryInterface
(
PROTOCOL
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
MimeFilterSink_AddRef
(
IInternetProtocolSink
*
iface
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
return
IInternetProtocol_AddRef
(
PROTOCOL
(
This
));
}
static
ULONG
WINAPI
MimeFilterSink_Release
(
IInternetProtocolSink
*
iface
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
return
IInternetProtocol_Release
(
PROTOCOL
(
This
));
}
static
HRESULT
WINAPI
MimeFilterSink_Switch
(
IInternetProtocolSink
*
iface
,
PROTOCOLDATA
*
pProtocolData
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pProtocolData
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MimeFilterSink_ReportProgress
(
IInternetProtocolSink
*
iface
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
FIXME
(
"(%p)->(%u %s)
\n
"
,
This
,
ulStatusCode
,
debugstr_w
(
szStatusText
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MimeFilterSink_ReportData
(
IInternetProtocolSink
*
iface
,
DWORD
grfBSCF
,
ULONG
ulProgress
,
ULONG
ulProgressMax
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
FIXME
(
"(%p)->(%d %u %u)
\n
"
,
This
,
grfBSCF
,
ulProgress
,
ulProgressMax
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MimeFilterSink_ReportResult
(
IInternetProtocolSink
*
iface
,
HRESULT
hrResult
,
DWORD
dwError
,
LPCWSTR
szResult
)
{
MimeFilter
*
This
=
PROTSINK_THIS
(
iface
);
FIXME
(
"(%p)->(%08x %d %s)
\n
"
,
This
,
hrResult
,
dwError
,
debugstr_w
(
szResult
));
return
E_NOTIMPL
;
}
#undef PROTSINK_THIS
static
const
IInternetProtocolSinkVtbl
InternetProtocolSinkVtbl
=
{
MimeFilterSink_QueryInterface
,
MimeFilterSink_AddRef
,
MimeFilterSink_Release
,
MimeFilterSink_Switch
,
MimeFilterSink_ReportProgress
,
MimeFilterSink_ReportData
,
MimeFilterSink_ReportResult
};
HRESULT
MimeFilter_Construct
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppobj
)
{
MimeFilter
*
ret
;
...
...
@@ -185,6 +255,7 @@ HRESULT MimeFilter_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc_zero
(
sizeof
(
MimeFilter
));
ret
->
lpIInternetProtocolVtbl
=
&
MimeFilterProtocolVtbl
;
ret
->
lpIInternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
ref
=
1
;
*
ppobj
=
PROTOCOL
(
ret
);
...
...
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