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
9ff3c395
Commit
9ff3c395
authored
Mar 19, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added IActiveScriptProperty stub implementation.
parent
12a58984
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
jscript.c
dlls/jscript/jscript.c
+52
-0
No files found.
dlls/jscript/jscript.c
View file @
9ff3c395
...
...
@@ -26,12 +26,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
typedef
struct
{
const
IActiveScriptVtbl
*
lpIActiveScriptVtbl
;
const
IActiveScriptParseVtbl
*
lpIActiveScriptParseVtbl
;
const
IActiveScriptPropertyVtbl
*
lpIActiveScriptPropertyVtbl
;
LONG
ref
;
}
JScript
;
#define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl)
#define ASPARSE(x) ((IActiveScriptParse*) &(x)->lpIActiveScriptParseVtbl)
#define ACTSCPPROP(x) ((IActiveScriptProperty*) &(x)->lpIActiveScriptPropertyVtbl)
#define ACTSCRIPT_THIS(iface) DEFINE_THIS(JScript, IActiveScript, iface)
...
...
@@ -50,6 +52,9 @@ static HRESULT WINAPI JScript_QueryInterface(IActiveScript *iface, REFIID riid,
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IActiveScriptParse
))
{
TRACE
(
"(%p)->(IID_IActiveScriptParse %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ASPARSE
(
This
);
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IActiveScriptProperty
))
{
TRACE
(
"(%p)->(IID_IActiveScriptProperty %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ACTSCPPROP
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -269,6 +274,52 @@ static const IActiveScriptParseVtbl JScriptParseVtbl = {
JScriptParse_ParseScriptText
};
#define ACTSCPPROP_THIS(iface) DEFINE_THIS(JScript, IActiveScriptProperty, iface)
static
HRESULT
WINAPI
JScriptProperty_QueryInterface
(
IActiveScriptProperty
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
JScript
*
This
=
ACTSCPPROP_THIS
(
iface
);
return
IActiveScript_QueryInterface
(
ACTSCRIPT
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
JScriptProperty_AddRef
(
IActiveScriptProperty
*
iface
)
{
JScript
*
This
=
ACTSCPPROP_THIS
(
iface
);
return
IActiveScript_AddRef
(
ACTSCRIPT
(
This
));
}
static
ULONG
WINAPI
JScriptProperty_Release
(
IActiveScriptProperty
*
iface
)
{
JScript
*
This
=
ACTSCPPROP_THIS
(
iface
);
return
IActiveScript_Release
(
ACTSCRIPT
(
This
));
}
static
HRESULT
WINAPI
JScriptProperty_GetProperty
(
IActiveScriptProperty
*
iface
,
DWORD
dwProperty
,
VARIANT
*
pvarIndex
,
VARIANT
*
pvarValue
)
{
JScript
*
This
=
ACTSCPPROP_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwProperty
,
pvarIndex
,
pvarValue
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
JScriptProperty_SetProperty
(
IActiveScriptProperty
*
iface
,
DWORD
dwProperty
,
VARIANT
*
pvarIndex
,
VARIANT
*
pvarValue
)
{
JScript
*
This
=
ACTSCPPROP_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwProperty
,
pvarIndex
,
pvarValue
);
return
E_NOTIMPL
;
}
#undef ACTSCPPROP_THIS
static
const
IActiveScriptPropertyVtbl
JScriptPropertyVtbl
=
{
JScriptProperty_QueryInterface
,
JScriptProperty_AddRef
,
JScriptProperty_Release
,
JScriptProperty_GetProperty
,
JScriptProperty_SetProperty
};
HRESULT
WINAPI
JScriptFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -281,6 +332,7 @@ HRESULT WINAPI JScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUn
ret
->
lpIActiveScriptVtbl
=
&
JScriptVtbl
;
ret
->
lpIActiveScriptParseVtbl
=
&
JScriptParseVtbl
;
ret
->
lpIActiveScriptPropertyVtbl
=
&
JScriptPropertyVtbl
;
ret
->
ref
=
1
;
hres
=
IActiveScript_QueryInterface
(
ACTSCRIPT
(
ret
),
riid
,
ppv
);
...
...
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