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
881653cc
Commit
881653cc
authored
Jun 22, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added stub implementation of HTMLLoadOptions.
parent
bc29a20d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
145 additions
and
0 deletions
+145
-0
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
loadopts.c
dlls/mshtml/loadopts.c
+140
-0
main.c
dlls/mshtml/main.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/Makefile.in
View file @
881653cc
...
...
@@ -22,6 +22,7 @@ C_SRCS = \
htmltextcont.c
\
htmltextarea.c
\
install.c
\
loadopts.c
\
main.c
\
navigate.c
\
nsembed.c
\
...
...
dlls/mshtml/loadopts.c
0 → 100644
View file @
881653cc
/*
* Copyright 2006 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "optary.h"
#include "wine/debug.h"
#include "mshtml_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
typedef
struct
{
const
IHtmlLoadOptionsVtbl
*
lpHtmlLoadOptionsVtbl
;
LONG
ref
;
}
HTMLLoadOptions
;
#define LOADOPTS(x) ((IHtmlLoadOptions*) &(x)->lpHtmlLoadOptionsVtbl)
#define LOADOPTS_THIS(iface) DEFINE_THIS(HTMLLoadOptions, HtmlLoadOptions, iface)
static
HRESULT
WINAPI
HtmlLoadOptions_QueryInterface
(
IHtmlLoadOptions
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLLoadOptions
*
This
=
LOADOPTS_THIS
(
iface
);
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
LOADOPTS
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOptionArray
,
riid
))
{
TRACE
(
"(%p)->(IID_IOptionArray %p)
\n
"
,
This
,
ppv
);
*
ppv
=
LOADOPTS
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IHtmlLoadOptions
,
riid
))
{
TRACE
(
"(%p)->(IID_IHtmlLoadOptions %p)
\n
"
,
This
,
ppv
);
*
ppv
=
LOADOPTS
(
This
);
}
if
(
*
ppv
)
{
IHtmlLoadOptions_AddRef
(
LOADOPTS
(
This
));
return
S_OK
;
}
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HtmlLoadOptions_AddRef
(
IHtmlLoadOptions
*
iface
)
{
HTMLLoadOptions
*
This
=
LOADOPTS_THIS
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
HtmlLoadOptions_Release
(
IHtmlLoadOptions
*
iface
)
{
HTMLLoadOptions
*
This
=
LOADOPTS_THIS
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
HtmlLoadOptions_QueryOption
(
IHtmlLoadOptions
*
iface
,
DWORD
dwOption
,
LPVOID
pBuffer
,
ULONG
*
pcbBuf
)
{
HTMLLoadOptions
*
This
=
LOADOPTS_THIS
(
iface
);
FIXME
(
"(%p)->(%ld %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuf
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HtmlLoadOptions_SetOption
(
IHtmlLoadOptions
*
iface
,
DWORD
dwOption
,
LPVOID
pBuffer
,
ULONG
cbBuf
)
{
HTMLLoadOptions
*
This
=
LOADOPTS_THIS
(
iface
);
FIXME
(
"(%p)->(%ld %p %ld)
\n
"
,
This
,
dwOption
,
pBuffer
,
cbBuf
);
return
E_NOTIMPL
;
}
#undef LOADOPTS_THIS
static
const
IHtmlLoadOptionsVtbl
HtmlLoadOptionsVtbl
=
{
HtmlLoadOptions_QueryInterface
,
HtmlLoadOptions_AddRef
,
HtmlLoadOptions_Release
,
HtmlLoadOptions_QueryOption
,
HtmlLoadOptions_SetOption
};
HRESULT
HTMLLoadOptions_Create
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
HTMLLoadOptions
*
ret
;
HRESULT
hres
;
TRACE
(
"(%p %s %p)
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppv
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
HTMLLoadOptions
));
ret
->
lpHtmlLoadOptionsVtbl
=
&
HtmlLoadOptionsVtbl
;
ret
->
ref
=
1
;
hres
=
IHtmlLoadOptions_QueryInterface
(
LOADOPTS
(
ret
),
riid
,
ppv
);
IHtmlLoadOptions_Release
(
LOADOPTS
(
ret
));
return
hres
;
}
dlls/mshtml/main.c
View file @
881653cc
...
...
@@ -176,6 +176,9 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
}
else
if
(
IsEqualGUID
(
&
CLSID_SysimageProtocol
,
rclsid
))
{
TRACE
(
"(CLSID_SysimageProtocol %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
ProtocolFactory_Create
(
rclsid
,
riid
,
ppv
);
}
else
if
(
IsEqualGUID
(
&
CLSID_HTMLLoadOptions
,
rclsid
))
{
TRACE
(
"(CLSID_HTMLLoadOptions %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
ClassFactory_Create
(
riid
,
ppv
,
HTMLLoadOptions_Create
);
}
FIXME
(
"Unknown class %s
\n
"
,
debugstr_guid
(
rclsid
));
...
...
dlls/mshtml/mshtml_private.h
View file @
881653cc
...
...
@@ -248,6 +248,7 @@ typedef struct {
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
HRESULT
HTMLDocument_Create
(
IUnknown
*
,
REFIID
,
void
**
);
HRESULT
HTMLLoadOptions_Create
(
IUnknown
*
,
REFIID
,
void
**
);
void
HTMLDocument_HTMLDocument3_Init
(
HTMLDocument
*
);
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
);
...
...
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