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
df6d7977
Commit
df6d7977
authored
Apr 30, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Implement Database::OpenView.
parent
deabb297
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
automation.c
dlls/msi/automation.c
+51
-0
No files found.
dlls/msi/automation.c
View file @
df6d7977
...
...
@@ -604,3 +604,54 @@ static HRESULT WINAPI ViewImpl_Invoke(
return
S_OK
;
}
static
HRESULT
WINAPI
DatabaseImpl_Invoke
(
AutomationObject
*
This
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
MSIHANDLE
msiHandle
;
IDispatch
*
pDispatch
=
NULL
;
UINT
ret
;
VARIANTARG
varg0
,
varg1
;
HRESULT
hr
;
VariantInit
(
&
varg0
);
VariantInit
(
&
varg1
);
switch
(
dispIdMember
)
{
case
DISPID_DATABASE_OPENVIEW
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
V_VT
(
pVarResult
)
=
VT_DISPATCH
;
if
((
ret
=
MsiDatabaseOpenViewW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
),
&
msiHandle
))
==
ERROR_SUCCESS
)
{
if
(
SUCCEEDED
(
create_automation_object
(
msiHandle
,
NULL
,
(
LPVOID
*
)
&
pDispatch
,
&
DIID_View
,
ViewImpl_Invoke
)))
{
IDispatch_AddRef
(
pDispatch
);
V_DISPATCH
(
pVarResult
)
=
pDispatch
;
}
}
else
{
ERR
(
"MsiDatabaseOpenView returned %d
\n
"
,
ret
);
return
DISP_E_EXCEPTION
;
}
}
break
;
default:
return
DISP_E_MEMBERNOTFOUND
;
}
return
S_OK
;
}
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