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
0194b8f0
Commit
0194b8f0
authored
Feb 02, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Add IActiveScriptParse64 declaration and use it on Win64.
parent
c727fe4a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
27 deletions
+95
-27
jscript.c
dlls/jscript/jscript.c
+18
-6
jscript.c
dlls/jscript/tests/jscript.c
+6
-6
run.c
dlls/jscript/tests/run.c
+7
-7
script.c
dlls/mshtml/script.c
+3
-3
script.c
dlls/mshtml/tests/script.c
+14
-2
script.c
dlls/msi/script.c
+2
-2
activscp.idl
include/activscp.idl
+45
-1
No files found.
dlls/jscript/jscript.c
View file @
0194b8f0
...
@@ -24,6 +24,18 @@
...
@@ -24,6 +24,18 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
jscript
);
WINE_DEFAULT_DEBUG_CHANNEL
(
jscript
);
#ifdef _WIN64
#define CTXARG_T DWORDLONG
#define IActiveScriptParseVtbl IActiveScriptParse64Vtbl
#else
#define CTXARG_T DWORD
#define IActiveScriptParseVtbl IActiveScriptParse32Vtbl
#endif
typedef
struct
{
typedef
struct
{
const
IActiveScriptVtbl
*
lpIActiveScriptVtbl
;
const
IActiveScriptVtbl
*
lpIActiveScriptVtbl
;
const
IActiveScriptParseVtbl
*
lpIActiveScriptParseVtbl
;
const
IActiveScriptParseVtbl
*
lpIActiveScriptParseVtbl
;
...
@@ -555,29 +567,29 @@ static HRESULT WINAPI JScriptParse_InitNew(IActiveScriptParse *iface)
...
@@ -555,29 +567,29 @@ static HRESULT WINAPI JScriptParse_InitNew(IActiveScriptParse *iface)
static
HRESULT
WINAPI
JScriptParse_AddScriptlet
(
IActiveScriptParse
*
iface
,
static
HRESULT
WINAPI
JScriptParse_AddScriptlet
(
IActiveScriptParse
*
iface
,
LPCOLESTR
pstrDefaultName
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
LPCOLESTR
pstrDefaultName
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
LPCOLESTR
pstrSubItemName
,
LPCOLESTR
pstrEventName
,
LPCOLESTR
pstrDelimiter
,
LPCOLESTR
pstrSubItemName
,
LPCOLESTR
pstrEventName
,
LPCOLESTR
pstrDelimiter
,
DWORD
dwSourceContextCookie
,
ULONG
ulStartingLineNumber
,
DWORD
dwFlags
,
CTXARG_T
dwSourceContextCookie
,
ULONG
ulStartingLineNumber
,
DWORD
dwFlags
,
BSTR
*
pbstrName
,
EXCEPINFO
*
pexcepinfo
)
BSTR
*
pbstrName
,
EXCEPINFO
*
pexcepinfo
)
{
{
JScript
*
This
=
ASPARSE_THIS
(
iface
);
JScript
*
This
=
ASPARSE_THIS
(
iface
);
FIXME
(
"(%p)->(%s %s %s %s %s %s %
x
%u %x %p %p)
\n
"
,
This
,
debugstr_w
(
pstrDefaultName
),
FIXME
(
"(%p)->(%s %s %s %s %s %s %
s
%u %x %p %p)
\n
"
,
This
,
debugstr_w
(
pstrDefaultName
),
debugstr_w
(
pstrCode
),
debugstr_w
(
pstrItemName
),
debugstr_w
(
pstrSubItemName
),
debugstr_w
(
pstrCode
),
debugstr_w
(
pstrItemName
),
debugstr_w
(
pstrSubItemName
),
debugstr_w
(
pstrEventName
),
debugstr_w
(
pstrDelimiter
),
dwSourceContextCookie
,
debugstr_w
(
pstrEventName
),
debugstr_w
(
pstrDelimiter
),
wine_dbgstr_longlong
(
dwSourceContextCookie
)
,
ulStartingLineNumber
,
dwFlags
,
pbstrName
,
pexcepinfo
);
ulStartingLineNumber
,
dwFlags
,
pbstrName
,
pexcepinfo
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
JScriptParse_ParseScriptText
(
IActiveScriptParse
*
iface
,
static
HRESULT
WINAPI
JScriptParse_ParseScriptText
(
IActiveScriptParse
*
iface
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
IUnknown
*
punkContext
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
IUnknown
*
punkContext
,
LPCOLESTR
pstrDelimiter
,
DWORD
dwSourceContextCookie
,
ULONG
ulStartingLine
,
LPCOLESTR
pstrDelimiter
,
CTXARG_T
dwSourceContextCookie
,
ULONG
ulStartingLine
,
DWORD
dwFlags
,
VARIANT
*
pvarResult
,
EXCEPINFO
*
pexcepinfo
)
DWORD
dwFlags
,
VARIANT
*
pvarResult
,
EXCEPINFO
*
pexcepinfo
)
{
{
JScript
*
This
=
ASPARSE_THIS
(
iface
);
JScript
*
This
=
ASPARSE_THIS
(
iface
);
parser_ctx_t
*
parser_ctx
;
parser_ctx_t
*
parser_ctx
;
HRESULT
hres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %s %p %s %
x
%u %x %p %p)
\n
"
,
This
,
debugstr_w
(
pstrCode
),
TRACE
(
"(%p)->(%s %s %p %s %
s
%u %x %p %p)
\n
"
,
This
,
debugstr_w
(
pstrCode
),
debugstr_w
(
pstrItemName
),
punkContext
,
debugstr_w
(
pstrDelimiter
),
debugstr_w
(
pstrItemName
),
punkContext
,
debugstr_w
(
pstrDelimiter
),
dwSourceContextCookie
,
ulStartingLine
,
dwFlags
,
pvarResult
,
pexcepinfo
);
wine_dbgstr_longlong
(
dwSourceContextCookie
)
,
ulStartingLine
,
dwFlags
,
pvarResult
,
pexcepinfo
);
if
(
This
->
thread_id
!=
GetCurrentThreadId
()
||
This
->
ctx
->
state
==
SCRIPTSTATE_CLOSED
)
if
(
This
->
thread_id
!=
GetCurrentThreadId
()
||
This
->
ctx
->
state
==
SCRIPTSTATE_CLOSED
)
return
E_UNEXPECTED
;
return
E_UNEXPECTED
;
...
...
dlls/jscript/tests/jscript.c
View file @
0194b8f0
...
@@ -304,10 +304,10 @@ static void test_jscript(void)
...
@@ -304,10 +304,10 @@ static void test_jscript(void)
test_state
(
script
,
SCRIPTSTATE_UNINITIALIZED
);
test_state
(
script
,
SCRIPTSTATE_UNINITIALIZED
);
test_safety
(
unk
);
test_safety
(
unk
);
hres
=
IActiveScriptParse_InitNew
(
parse
);
hres
=
IActiveScriptParse
64
_InitNew
(
parse
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
hres
=
IActiveScriptParse_InitNew
(
parse
);
hres
=
IActiveScriptParse
64
_InitNew
(
parse
);
ok
(
hres
==
E_UNEXPECTED
,
"InitNew failed: %08x, expected E_UNEXPECTED
\n
"
,
hres
);
ok
(
hres
==
E_UNEXPECTED
,
"InitNew failed: %08x, expected E_UNEXPECTED
\n
"
,
hres
);
hres
=
IActiveScript_SetScriptSite
(
script
,
NULL
);
hres
=
IActiveScript_SetScriptSite
(
script
,
NULL
);
...
@@ -345,7 +345,7 @@ static void test_jscript(void)
...
@@ -345,7 +345,7 @@ static void test_jscript(void)
test_state
(
script
,
SCRIPTSTATE_CLOSED
);
test_state
(
script
,
SCRIPTSTATE_CLOSED
);
test_script_dispatch
(
script
,
FALSE
);
test_script_dispatch
(
script
,
FALSE
);
I
ActiveScriptParse
_Release
(
parse
);
I
Unknown
_Release
(
parse
);
IActiveScript_Release
(
script
);
IActiveScript_Release
(
script
);
ref
=
IUnknown_Release
(
unk
);
ref
=
IUnknown_Release
(
unk
);
...
@@ -387,11 +387,11 @@ static void test_jscript2(void)
...
@@ -387,11 +387,11 @@ static void test_jscript2(void)
test_state
(
script
,
SCRIPTSTATE_UNINITIALIZED
);
test_state
(
script
,
SCRIPTSTATE_UNINITIALIZED
);
SET_EXPECT
(
OnStateChange_INITIALIZED
);
SET_EXPECT
(
OnStateChange_INITIALIZED
);
hres
=
IActiveScriptParse_InitNew
(
parse
);
hres
=
IActiveScriptParse
64
_InitNew
(
parse
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
OnStateChange_INITIALIZED
);
CHECK_CALLED
(
OnStateChange_INITIALIZED
);
hres
=
IActiveScriptParse_InitNew
(
parse
);
hres
=
IActiveScriptParse
64
_InitNew
(
parse
);
ok
(
hres
==
E_UNEXPECTED
,
"InitNew failed: %08x, expected E_UNEXPECTED
\n
"
,
hres
);
ok
(
hres
==
E_UNEXPECTED
,
"InitNew failed: %08x, expected E_UNEXPECTED
\n
"
,
hres
);
SET_EXPECT
(
OnStateChange_CONNECTED
);
SET_EXPECT
(
OnStateChange_CONNECTED
);
...
@@ -413,7 +413,7 @@ static void test_jscript2(void)
...
@@ -413,7 +413,7 @@ static void test_jscript2(void)
test_state
(
script
,
SCRIPTSTATE_CLOSED
);
test_state
(
script
,
SCRIPTSTATE_CLOSED
);
test_script_dispatch
(
script
,
FALSE
);
test_script_dispatch
(
script
,
FALSE
);
I
ActiveScriptParse
_Release
(
parse
);
I
Unknown
_Release
(
parse
);
IActiveScript_Release
(
script
);
IActiveScript_Release
(
script
);
ref
=
IUnknown_Release
(
unk
);
ref
=
IUnknown_Release
(
unk
);
...
...
dlls/jscript/tests/run.c
View file @
0194b8f0
...
@@ -580,7 +580,7 @@ static void parse_script(BSTR script_str)
...
@@ -580,7 +580,7 @@ static void parse_script(BSTR script_str)
return
;
return
;
}
}
hres
=
IActiveScriptParse_InitNew
(
parser
);
hres
=
IActiveScriptParse
64
_InitNew
(
parser
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
hres
=
IActiveScript_SetScriptSite
(
engine
,
&
ActiveScriptSite
);
hres
=
IActiveScript_SetScriptSite
(
engine
,
&
ActiveScriptSite
);
...
@@ -593,11 +593,11 @@ static void parse_script(BSTR script_str)
...
@@ -593,11 +593,11 @@ static void parse_script(BSTR script_str)
hres
=
IActiveScript_SetScriptState
(
engine
,
SCRIPTSTATE_STARTED
);
hres
=
IActiveScript_SetScriptState
(
engine
,
SCRIPTSTATE_STARTED
);
ok
(
hres
==
S_OK
,
"SetScriptState(SCRIPTSTATE_STARTED) failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetScriptState(SCRIPTSTATE_STARTED) failed: %08x
\n
"
,
hres
);
hres
=
IActiveScriptParse_ParseScriptText
(
parser
,
script_str
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
hres
=
IActiveScriptParse
64
_ParseScriptText
(
parser
,
script_str
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
IActiveScript_Release
(
engine
);
IActiveScript_Release
(
engine
);
I
ActiveScriptParse
_Release
(
parser
);
I
Unknown
_Release
(
parser
);
}
}
static
void
parse_script_a
(
const
char
*
src
)
static
void
parse_script_a
(
const
char
*
src
)
...
@@ -707,7 +707,7 @@ static void test_isvisible(BOOL global_members)
...
@@ -707,7 +707,7 @@ static void test_isvisible(BOOL global_members)
return
;
return
;
}
}
hres
=
IActiveScriptParse_InitNew
(
parser
);
hres
=
IActiveScriptParse
64
_InitNew
(
parser
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"InitNew failed: %08x
\n
"
,
hres
);
hres
=
IActiveScript_SetScriptSite
(
engine
,
&
ActiveScriptSite
);
hres
=
IActiveScript_SetScriptSite
(
engine
,
&
ActiveScriptSite
);
...
@@ -727,16 +727,16 @@ static void test_isvisible(BOOL global_members)
...
@@ -727,16 +727,16 @@ static void test_isvisible(BOOL global_members)
if
(
!
global_members
)
if
(
!
global_members
)
SET_EXPECT
(
GetItemInfo_testVal
);
SET_EXPECT
(
GetItemInfo_testVal
);
hres
=
IActiveScriptParse_ParseScriptText
(
parser
,
script_textW
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
hres
=
IActiveScriptParse
64
_ParseScriptText
(
parser
,
script_textW
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
if
(
!
global_members
)
if
(
!
global_members
)
CHECK_CALLED
(
GetItemInfo_testVal
);
CHECK_CALLED
(
GetItemInfo_testVal
);
hres
=
IActiveScriptParse_ParseScriptText
(
parser
,
script_textW
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
hres
=
IActiveScriptParse
64
_ParseScriptText
(
parser
,
script_textW
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"ParseScriptText failed: %08x
\n
"
,
hres
);
IActiveScript_Release
(
engine
);
IActiveScript_Release
(
engine
);
I
ActiveScriptParse
_Release
(
parser
);
I
Unknown
_Release
(
parser
);
}
}
static
void
run_tests
(
void
)
static
void
run_tests
(
void
)
...
...
dlls/mshtml/script.c
View file @
0194b8f0
...
@@ -119,7 +119,7 @@ static BOOL init_script_engine(ScriptHost *script_host)
...
@@ -119,7 +119,7 @@ static BOOL init_script_engine(ScriptHost *script_host)
WARN
(
"Could not get IActiveScriptProperty: %08x
\n
"
,
hres
);
WARN
(
"Could not get IActiveScriptProperty: %08x
\n
"
,
hres
);
}
}
hres
=
IActiveScriptParse_InitNew
(
script_host
->
parse
);
hres
=
IActiveScriptParse
64
_InitNew
(
script_host
->
parse
);
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
WARN
(
"InitNew failed: %08x
\n
"
,
hres
);
WARN
(
"InitNew failed: %08x
\n
"
,
hres
);
return
FALSE
;
return
FALSE
;
...
@@ -180,7 +180,7 @@ static void release_script_engine(ScriptHost *This)
...
@@ -180,7 +180,7 @@ static void release_script_engine(ScriptHost *This)
}
}
if
(
This
->
parse
)
{
if
(
This
->
parse
)
{
I
ActiveScriptParse
_Release
(
This
->
parse
);
I
Unknown
_Release
(
This
->
parse
);
This
->
parse
=
NULL
;
This
->
parse
=
NULL
;
}
}
}
}
...
@@ -552,7 +552,7 @@ static void parse_text(ScriptHost *script_host, LPCWSTR text)
...
@@ -552,7 +552,7 @@ static void parse_text(ScriptHost *script_host, LPCWSTR text)
VariantInit
(
&
var
);
VariantInit
(
&
var
);
memset
(
&
excepinfo
,
0
,
sizeof
(
excepinfo
));
memset
(
&
excepinfo
,
0
,
sizeof
(
excepinfo
));
hres
=
IActiveScriptParse_ParseScriptText
(
script_host
->
parse
,
text
,
windowW
,
NULL
,
script_endW
,
hres
=
IActiveScriptParse
64
_ParseScriptText
(
script_host
->
parse
,
text
,
windowW
,
NULL
,
script_endW
,
0
,
0
,
SCRIPTTEXT_ISVISIBLE
|
SCRIPTTEXT_HOSTMANAGESSOURCE
,
0
,
0
,
SCRIPTTEXT_ISVISIBLE
|
SCRIPTTEXT_HOSTMANAGESSOURCE
,
&
var
,
&
excepinfo
);
&
var
,
&
excepinfo
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
...
...
dlls/mshtml/tests/script.c
View file @
0194b8f0
...
@@ -36,6 +36,18 @@
...
@@ -36,6 +36,18 @@
DEFINE_GUID
(
CLSID_IdentityUnmarshal
,
0x0000001b
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
DEFINE_GUID
(
CLSID_IdentityUnmarshal
,
0x0000001b
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
#ifdef _WIN64
#define CTXARG_T DWORDLONG
#define IActiveScriptParseVtbl IActiveScriptParse64Vtbl
#else
#define CTXARG_T DWORD
#define IActiveScriptParseVtbl IActiveScriptParse32Vtbl
#endif
#define DEFINE_EXPECT(func) \
#define DEFINE_EXPECT(func) \
static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
...
@@ -579,7 +591,7 @@ static HRESULT WINAPI ActiveScriptParse_InitNew(IActiveScriptParse *iface)
...
@@ -579,7 +591,7 @@ static HRESULT WINAPI ActiveScriptParse_InitNew(IActiveScriptParse *iface)
static
HRESULT
WINAPI
ActiveScriptParse_AddScriptlet
(
IActiveScriptParse
*
iface
,
static
HRESULT
WINAPI
ActiveScriptParse_AddScriptlet
(
IActiveScriptParse
*
iface
,
LPCOLESTR
pstrDefaultName
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
LPCOLESTR
pstrDefaultName
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
LPCOLESTR
pstrSubItemName
,
LPCOLESTR
pstrEventName
,
LPCOLESTR
pstrDelimiter
,
LPCOLESTR
pstrSubItemName
,
LPCOLESTR
pstrEventName
,
LPCOLESTR
pstrDelimiter
,
DWORD
dwSourceContextCookie
,
ULONG
ulStartingLineNumber
,
DWORD
dwFlags
,
CTXARG_T
dwSourceContextCookie
,
ULONG
ulStartingLineNumber
,
DWORD
dwFlags
,
BSTR
*
pbstrName
,
EXCEPINFO
*
pexcepinfo
)
BSTR
*
pbstrName
,
EXCEPINFO
*
pexcepinfo
)
{
{
ok
(
0
,
"unexpected call
\n
"
);
ok
(
0
,
"unexpected call
\n
"
);
...
@@ -588,7 +600,7 @@ static HRESULT WINAPI ActiveScriptParse_AddScriptlet(IActiveScriptParse *iface,
...
@@ -588,7 +600,7 @@ static HRESULT WINAPI ActiveScriptParse_AddScriptlet(IActiveScriptParse *iface,
static
HRESULT
WINAPI
ActiveScriptParse_ParseScriptText
(
IActiveScriptParse
*
iface
,
static
HRESULT
WINAPI
ActiveScriptParse_ParseScriptText
(
IActiveScriptParse
*
iface
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
IUnknown
*
punkContext
,
LPCOLESTR
pstrCode
,
LPCOLESTR
pstrItemName
,
IUnknown
*
punkContext
,
LPCOLESTR
pstrDelimiter
,
DWORD
dwSourceContextCookie
,
ULONG
ulStartingLine
,
LPCOLESTR
pstrDelimiter
,
CTXARG_T
dwSourceContextCookie
,
ULONG
ulStartingLine
,
DWORD
dwFlags
,
VARIANT
*
pvarResult
,
EXCEPINFO
*
pexcepinfo
)
DWORD
dwFlags
,
VARIANT
*
pvarResult
,
EXCEPINFO
*
pexcepinfo
)
{
{
IDispatchEx
*
document
;
IDispatchEx
*
document
;
...
...
dlls/msi/script.c
View file @
0194b8f0
...
@@ -138,14 +138,14 @@ DWORD call_script(MSIHANDLE hPackage, INT type, LPCWSTR script, LPCWSTR function
...
@@ -138,14 +138,14 @@ DWORD call_script(MSIHANDLE hPackage, INT type, LPCWSTR script, LPCWSTR function
if
(
FAILED
(
hr
))
goto
done
;
if
(
FAILED
(
hr
))
goto
done
;
/* Initialize the script engine */
/* Initialize the script engine */
hr
=
IActiveScriptParse_InitNew
(
pActiveScriptParse
);
hr
=
IActiveScriptParse
64
_InitNew
(
pActiveScriptParse
);
if
(
FAILED
(
hr
))
goto
done
;
if
(
FAILED
(
hr
))
goto
done
;
/* Add the session object */
/* Add the session object */
hr
=
IActiveScript_AddNamedItem
(
pActiveScript
,
szSession
,
SCRIPTITEM_ISVISIBLE
);
hr
=
IActiveScript_AddNamedItem
(
pActiveScript
,
szSession
,
SCRIPTITEM_ISVISIBLE
);
/* Pass the script to the engine */
/* Pass the script to the engine */
hr
=
IActiveScriptParse_ParseScriptText
(
pActiveScriptParse
,
script
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0L
,
NULL
,
NULL
);
hr
=
IActiveScriptParse
64
_ParseScriptText
(
pActiveScriptParse
,
script
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0L
,
NULL
,
NULL
);
if
(
FAILED
(
hr
))
goto
done
;
if
(
FAILED
(
hr
))
goto
done
;
/* Start processing the script */
/* Start processing the script */
...
...
include/activscp.idl
View file @
0194b8f0
...
@@ -268,7 +268,7 @@ object,
...
@@ -268,7 +268,7 @@ object,
uuid
(
BB1A2AE2
-
A4F9
-
11
cf
-
8
F20
-
00805
F2CD064
),
uuid
(
BB1A2AE2
-
A4F9
-
11
cf
-
8
F20
-
00805
F2CD064
),
pointer_default
(
unique
)
pointer_default
(
unique
)
]
]
interface
IActiveScriptParse
:
IUnknown
interface
IActiveScriptParse
32
:
IUnknown
{
{
HRESULT
InitNew
(
void
)
;
HRESULT
InitNew
(
void
)
;
...
@@ -299,6 +299,50 @@ interface IActiveScriptParse : IUnknown
...
@@ -299,6 +299,50 @@ interface IActiveScriptParse : IUnknown
)
;
)
;
}
}
[
object
,
uuid
(
c7ef7658
-
e1ee
-480e-97
ea
-
d52cb4d76d17
),
pointer_default
(
unique
)
]
interface
IActiveScriptParse64
:
IUnknown
{
HRESULT
InitNew
(
void
)
;
HRESULT
AddScriptlet
(
[
in
]
LPCOLESTR
pstrDefaultName
,
[
in
]
LPCOLESTR
pstrCode
,
[
in
]
LPCOLESTR
pstrItemName
,
[
in
]
LPCOLESTR
pstrSubItemName
,
[
in
]
LPCOLESTR
pstrEventName
,
[
in
]
LPCOLESTR
pstrDelimiter
,
[
in
]
DWORDLONG
dwSourceContextCookie
,
[
in
]
ULONG
ulStartingLineNumber
,
[
in
]
DWORD
dwFlags
,
[
out
]
BSTR
*
pbstrName
,
[
out
]
EXCEPINFO
*
pexcepinfo
)
;
HRESULT
ParseScriptText
(
[
in
]
LPCOLESTR
pstrCode
,
[
in
]
LPCOLESTR
pstrItemName
,
[
in
]
IUnknown
*
punkContext
,
[
in
]
LPCOLESTR
pstrDelimiter
,
[
in
]
DWORDLONG
dwSourceContextCookie
,
[
in
]
ULONG
ulStartingLineNumber
,
[
in
]
DWORD
dwFlags
,
[
out
]
VARIANT
*
pvarResult
,
[
out
]
EXCEPINFO
*
pexcepinfo
)
;
}
cpp_quote
(
"#ifdef _WIN64"
)
cpp_quote
(
"#define IActiveScriptParse IActiveScriptParse64"
)
cpp_quote
(
"#define IID_IActiveScriptParse IID_IActiveScriptParse64"
)
cpp_quote
(
"#else"
)
cpp_quote
(
"#define IActiveScriptParse IActiveScriptParse32"
)
cpp_quote
(
"#define IID_IActiveScriptParse IID_IActiveScriptParse32"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"typedef IActiveScriptParse *PIActiveScriptParse;"
)
cpp_quote
(
"typedef IActiveScriptParse *PIActiveScriptParse;"
)
[
[
...
...
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