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
4063a32f
Commit
4063a32f
authored
Mar 02, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IInternetPriority interface stup implementation to FtpProtocol.
parent
a7ef2f4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
ftp.c
dlls/urlmon/ftp.c
+51
-0
No files found.
dlls/urlmon/ftp.c
View file @
4063a32f
...
...
@@ -23,12 +23,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
LONG
ref
;
}
FtpProtocol
;
#define PROTOCOL_THIS(iface) DEFINE_THIS(FtpProtocol, InternetProtocol, iface)
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
static
HRESULT
WINAPI
FtpProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -44,6 +47,9 @@ static HRESULT WINAPI FtpProtocol_QueryInterface(IInternetProtocol *iface, REFII
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocol
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocol %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PROTOCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IInternetPriority
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetPriority %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PRIORITY
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -173,6 +179,50 @@ static const IInternetProtocolVtbl FtpProtocolVtbl = {
FtpProtocol_UnlockRequest
};
#define PRIORITY_THIS(iface) DEFINE_THIS(FtpProtocol, InternetPriority, iface)
static
HRESULT
WINAPI
FtpPriority_QueryInterface
(
IInternetPriority
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
FtpProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_QueryInterface
(
PROTOCOL
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
FtpPriority_AddRef
(
IInternetPriority
*
iface
)
{
FtpProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_AddRef
(
PROTOCOL
(
This
));
}
static
ULONG
WINAPI
FtpPriority_Release
(
IInternetPriority
*
iface
)
{
FtpProtocol
*
This
=
PRIORITY_THIS
(
iface
);
return
IInternetProtocol_Release
(
PROTOCOL
(
This
));
}
static
HRESULT
WINAPI
FtpPriority_SetPriority
(
IInternetPriority
*
iface
,
LONG
nPriority
)
{
FtpProtocol
*
This
=
PRIORITY_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
nPriority
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FtpPriority_GetPriority
(
IInternetPriority
*
iface
,
LONG
*
pnPriority
)
{
FtpProtocol
*
This
=
PRIORITY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pnPriority
);
return
E_NOTIMPL
;
}
#undef PRIORITY_THIS
static
const
IInternetPriorityVtbl
FtpPriorityVtbl
=
{
FtpPriority_QueryInterface
,
FtpPriority_AddRef
,
FtpPriority_Release
,
FtpPriority_SetPriority
,
FtpPriority_GetPriority
};
HRESULT
FtpProtocol_Construct
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppobj
)
{
FtpProtocol
*
ret
;
...
...
@@ -184,6 +234,7 @@ HRESULT FtpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc
(
sizeof
(
FtpProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
FtpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
FtpPriorityVtbl
;
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