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
6bbd8c7f
Commit
6bbd8c7f
authored
Jan 23, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IInternetPriority interface to BindProtocol.
parent
e40f814b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
bindprot.c
dlls/urlmon/bindprot.c
+56
-0
No files found.
dlls/urlmon/bindprot.c
View file @
6bbd8c7f
...
@@ -34,12 +34,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
...
@@ -34,12 +34,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
typedef
struct
{
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetBindInfoVtbl
*
lpInternetBindInfoVtbl
;
const
IInternetBindInfoVtbl
*
lpInternetBindInfoVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
LONG
ref
;
LONG
ref
;
}
BindProtocol
;
}
BindProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl)
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define PROTOCOL_THIS(iface) DEFINE_THIS(BindProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(BindProtocol, InternetProtocol, iface)
...
@@ -60,6 +62,13 @@ static HRESULT WINAPI BindProtocol_QueryInterface(IInternetProtocol *iface, REFI
...
@@ -60,6 +62,13 @@ static HRESULT WINAPI BindProtocol_QueryInterface(IInternetProtocol *iface, REFI
}
else
if
(
IsEqualGUID
(
&
IID_IInternetBindInfo
,
riid
))
{
}
else
if
(
IsEqualGUID
(
&
IID_IInternetBindInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetBindInfo %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IInternetBindInfo %p)
\n
"
,
This
,
ppv
);
*
ppv
=
BINDINFO
(
This
);
*
ppv
=
BINDINFO
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IInternetPriority
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetPriority %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PRIORITY
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IAuthenticate
,
riid
))
{
FIXME
(
"(%p)->(IID_IAuthenticate %p)
\n
"
,
This
,
ppv
);
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocolSink
,
riid
))
{
FIXME
(
"(%p)->(IID_IInternetProtocolSink %p)
\n
"
,
This
,
ppv
);
}
}
if
(
*
ppv
)
{
if
(
*
ppv
)
{
...
@@ -241,12 +250,59 @@ static const IInternetBindInfoVtbl InternetBindInfoVtbl = {
...
@@ -241,12 +250,59 @@ static const IInternetBindInfoVtbl InternetBindInfoVtbl = {
BindInfo_GetBindString
BindInfo_GetBindString
};
};
#define PRIORITY_THIS(iface) DEFINE_THIS(BindProtocol, InternetPriority, iface)
static
HRESULT
WINAPI
InternetPriority_QueryInterface
(
IInternetPriority
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
BindProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_QueryInterface
(
PROTOCOL
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
InternetPriority_AddRef
(
IInternetPriority
*
iface
)
{
BindProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_AddRef
(
PROTOCOL
(
This
));
}
static
ULONG
WINAPI
InternetPriority_Release
(
IInternetPriority
*
iface
)
{
BindProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_Release
(
PROTOCOL
(
This
));
}
static
HRESULT
WINAPI
InternetPriority_SetPriority
(
IInternetPriority
*
iface
,
LONG
nPriority
)
{
BindProtocol
*
This
=
PRIORITY_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
nPriority
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetPriority_GetPriority
(
IInternetPriority
*
iface
,
LONG
*
pnPriority
)
{
BindProtocol
*
This
=
PRIORITY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pnPriority
);
return
E_NOTIMPL
;
}
#undef PRIORITY_THIS
static
const
IInternetPriorityVtbl
InternetPriorityVtbl
=
{
InternetPriority_QueryInterface
,
InternetPriority_AddRef
,
InternetPriority_Release
,
InternetPriority_SetPriority
,
InternetPriority_GetPriority
};
HRESULT
create_binding_protocol
(
LPCWSTR
url
,
IInternetProtocol
**
protocol
)
HRESULT
create_binding_protocol
(
LPCWSTR
url
,
IInternetProtocol
**
protocol
)
{
{
BindProtocol
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BindProtocol
));
BindProtocol
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BindProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
BindProtocolVtbl
;
ret
->
lpInternetProtocolVtbl
=
&
BindProtocolVtbl
;
ret
->
lpInternetBindInfoVtbl
=
&
InternetBindInfoVtbl
;
ret
->
lpInternetBindInfoVtbl
=
&
InternetBindInfoVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
InternetPriorityVtbl
;
ret
->
ref
=
1
;
ret
->
ref
=
1
;
*
protocol
=
PROTOCOL
(
ret
);
*
protocol
=
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