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
6927eecd
Commit
6927eecd
authored
Aug 21, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IWinInetHttpInfo stub implementation to BindProtocol object.
parent
e4106b62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
4 deletions
+79
-4
bindprot.c
dlls/urlmon/bindprot.c
+79
-4
No files found.
dlls/urlmon/bindprot.c
View file @
6927eecd
...
...
@@ -38,6 +38,7 @@ struct BindProtocol {
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IInternetProtocolSinkVtbl
*
lpIInternetProtocolSinkVtbl
;
const
IWinInetHttpInfoVtbl
*
lpIWinInetHttpInfoVtbl
;
const
IInternetProtocolVtbl
*
lpIInternetProtocolHandlerVtbl
;
...
...
@@ -73,6 +74,7 @@ struct BindProtocol {
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define HTTPINFO(x) ((IWinInetHttpInfo*) &(x)->lpIWinInetHttpInfoVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
#define PROTOCOLHANDLER(x) ((IInternetProtocol*) &(x)->lpIInternetProtocolHandlerVtbl)
...
...
@@ -316,15 +318,41 @@ static HRESULT WINAPI BindProtocol_QueryInterface(IInternetProtocol *iface, REFI
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocolSink
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocolSink %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PROTSINK
(
This
);
}
}
else
if
(
IsEqualGUID
(
&
IID_IWinInetInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IWinInetInfo %p)
\n
"
,
This
,
ppv
);
if
(
*
ppv
)
{
IInternetProtocol_AddRef
(
iface
);
return
S_OK
;
if
(
This
->
protocol
)
{
IWinInetInfo
*
inet_info
;
HRESULT
hres
;
hres
=
IInternetProtocol_QueryInterface
(
This
->
protocol
,
&
IID_IWinInetInfo
,
(
void
**
)
&
inet_info
);
if
(
SUCCEEDED
(
hres
))
{
*
ppv
=
HTTPINFO
(
This
);
IWinInetInfo_Release
(
inet_info
);
}
}
}
else
if
(
IsEqualGUID
(
&
IID_IWinInetHttpInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IWinInetHttpInfo %p)
\n
"
,
This
,
ppv
);
if
(
This
->
protocol
)
{
IWinInetHttpInfo
*
http_info
;
HRESULT
hres
;
hres
=
IInternetProtocol_QueryInterface
(
This
->
protocol
,
&
IID_IWinInetHttpInfo
,
(
void
**
)
&
http_info
);
if
(
SUCCEEDED
(
hres
))
{
*
ppv
=
HTTPINFO
(
This
);
IWinInetHttpInfo_Release
(
http_info
);
}
}
}
else
{
WARN
(
"not supported interface %s
\n
"
,
debugstr_guid
(
riid
));
}
if
(
!*
ppv
)
return
E_NOINTERFACE
;
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
BindProtocol_AddRef
(
IInternetProtocol
*
iface
)
...
...
@@ -1138,6 +1166,52 @@ static const IInternetProtocolSinkVtbl InternetProtocolSinkVtbl = {
BPInternetProtocolSink_ReportResult
};
#define INETINFO_THIS(iface) DEFINE_THIS(BindProtocol, IWinInetHttpInfo, iface)
static
HRESULT
WINAPI
WinInetHttpInfo_QueryInterface
(
IWinInetHttpInfo
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
BindProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IInternetProtocol_QueryInterface
(
PROTOCOL
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
WinInetHttpInfo_AddRef
(
IWinInetHttpInfo
*
iface
)
{
BindProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IInternetProtocol_AddRef
(
PROTOCOL
(
This
));
}
static
ULONG
WINAPI
WinInetHttpInfo_Release
(
IWinInetHttpInfo
*
iface
)
{
BindProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IInternetProtocol_Release
(
PROTOCOL
(
This
));
}
static
HRESULT
WINAPI
WinInetHttpInfo_QueryOption
(
IWinInetHttpInfo
*
iface
,
DWORD
dwOption
,
void
*
pBuffer
,
DWORD
*
pcbBuffer
)
{
BindProtocol
*
This
=
INETINFO_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WinInetHttpInfo_QueryInfo
(
IWinInetHttpInfo
*
iface
,
DWORD
dwOption
,
void
*
pBuffer
,
DWORD
*
pcbBuffer
,
DWORD
*
pdwFlags
,
DWORD
*
pdwReserved
)
{
BindProtocol
*
This
=
INETINFO_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
,
pdwFlags
,
pdwReserved
);
return
E_NOTIMPL
;
}
#undef INETINFO_THIS
static
const
IWinInetHttpInfoVtbl
WinInetHttpInfoVtbl
=
{
WinInetHttpInfo_QueryInterface
,
WinInetHttpInfo_AddRef
,
WinInetHttpInfo_Release
,
WinInetHttpInfo_QueryOption
,
WinInetHttpInfo_QueryInfo
};
#define SERVPROV_THIS(iface) DEFINE_THIS(BindProtocol, ServiceProvider, iface)
static
HRESULT
WINAPI
BPServiceProvider_QueryInterface
(
IServiceProvider
*
iface
,
...
...
@@ -1191,6 +1265,7 @@ HRESULT create_binding_protocol(LPCWSTR url, BOOL from_urlmon, IInternetProtocol
ret
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
ret
->
lpIInternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
lpIInternetProtocolHandlerVtbl
=
&
InternetProtocolHandlerVtbl
;
ret
->
lpIWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
ref
=
1
;
ret
->
from_urlmon
=
from_urlmon
;
...
...
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