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
9b4ee317
Commit
9b4ee317
authored
Mar 28, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added IWinInetHttpInfo interface.
parent
c3a677d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
5 deletions
+66
-5
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+66
-5
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
9b4ee317
...
...
@@ -167,6 +167,7 @@ static BOOL set_clientsite, container_locked;
static
BOOL
readystate_set_loading
=
FALSE
,
readystate_set_interactive
=
FALSE
,
load_from_stream
;
static
BOOL
editmode
=
FALSE
;
static
BOOL
inplace_deactivated
,
open_call
;
static
DWORD
status_code
=
HTTP_STATUS_OK
;
static
int
stream_read
,
protocol_read
;
static
enum
load_state_t
{
LD_DOLOAD
,
...
...
@@ -981,13 +982,73 @@ static const IStreamVtbl StreamVtbl = {
static
IStream
Stream
=
{
&
StreamVtbl
};
static
HRESULT
WINAPI
Binding_QueryInterface
(
IBinding
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
WinInetHttpInfo_QueryInterface
(
IWinInetHttpInfo
*
This
,
REFIID
riid
,
void
**
ppvObject
)
{
if
(
IsEqualGUID
(
&
IID_IWinInetHttpInfo
,
riid
))
return
E_NOINTERFACE
;
/* TODO */
ok
(
0
,
"unexpected call
\n
"
);
return
E_NOINTERFACE
;
}
if
(
IsEqualGUID
(
&
IID_IWinInetInfo
,
riid
))
return
E_NOINTERFACE
;
/* TODO */
static
ULONG
WINAPI
WinInetHttpInfo_AddRef
(
IWinInetHttpInfo
*
This
)
{
return
2
;
}
static
ULONG
WINAPI
WinInetHttpInfo_Release
(
IWinInetHttpInfo
*
This
)
{
return
1
;
}
static
HRESULT
WINAPI
WinInetHttpInfo_QueryOption
(
IWinInetHttpInfo
*
This
,
DWORD
dwOption
,
LPVOID
pBuffer
,
DWORD
*
pcbBuf
)
{
return
E_NOTIMPL
;
/* TODO */
}
static
HRESULT
WINAPI
WinInetHttpInfo_QueryInfo
(
IWinInetHttpInfo
*
This
,
DWORD
dwOption
,
LPVOID
pBuffer
,
DWORD
*
pcbBuf
,
DWORD
*
pdwFlags
,
DWORD
*
pdwReserved
)
{
ok
(
pdwReserved
==
NULL
,
"pdwReserved != NULL
\n
"
);
if
(
dwOption
==
(
HTTP_QUERY_STATUS_CODE
|
HTTP_QUERY_FLAG_NUMBER
))
{
ok
(
pBuffer
!=
NULL
,
"pBuffer == NULL
\n
"
);
ok
(
*
pcbBuf
==
sizeof
(
DWORD
),
"*pcbBuf = %d
\n
"
,
*
pcbBuf
);
ok
(
pdwFlags
==
NULL
,
"*pdwFlags != NULL
\n
"
);
*
((
DWORD
*
)
pBuffer
)
=
status_code
;
return
S_OK
;
}
return
E_NOTIMPL
;
/* TODO */
}
static
const
IWinInetHttpInfoVtbl
WinInetHttpInfoVtbl
=
{
WinInetHttpInfo_QueryInterface
,
WinInetHttpInfo_AddRef
,
WinInetHttpInfo_Release
,
WinInetHttpInfo_QueryOption
,
WinInetHttpInfo_QueryInfo
};
static
IWinInetHttpInfo
WinInetHttpInfo
=
{
&
WinInetHttpInfoVtbl
};
static
HRESULT
WINAPI
Binding_QueryInterface
(
IBinding
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualGUID
(
&
IID_IWinInetInfo
,
riid
)
||
IsEqualGUID
(
&
IID_IWinInetHttpInfo
,
riid
))
{
*
ppv
=
&
WinInetHttpInfo
;
return
S_OK
;
}
ok
(
0
,
"unexpected call
\n
"
);
return
E_NOINTERFACE
;
...
...
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