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
7d93e1a2
Commit
7d93e1a2
authored
Jul 03, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle remote calls to MsiGetFeatureState.
parent
f45b3ce6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
install.c
dlls/msi/install.c
+22
-1
msiserver.idl
dlls/msi/msiserver.idl
+1
-0
package.c
dlls/msi/package.c
+9
-0
No files found.
dlls/msi/install.c
View file @
7d93e1a2
...
...
@@ -829,7 +829,28 @@ UINT WINAPI MsiGetFeatureStateW(MSIHANDLE hInstall, LPCWSTR szFeature,
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
{
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemotePackage_GetFeatureState
(
remote_package
,
(
BSTR
*
)
szFeature
,
piInstalled
,
piAction
);
if
(
FAILED
(
hr
))
{
if
(
HRESULT_FACILITY
(
hr
)
==
FACILITY_WIN32
)
return
HRESULT_CODE
(
hr
);
return
ERROR_FUNCTION_FAILED
;
}
return
ERROR_SUCCESS
;
}
ret
=
MSI_GetFeatureStateW
(
package
,
szFeature
,
piInstalled
,
piAction
);
msiobj_release
(
&
package
->
hdr
);
return
ret
;
...
...
dlls/msi/msiserver.idl
View file @
7d93e1a2
...
...
@@ -48,6 +48,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
SetTargetPath
(
[
in
]
BSTR
*
folder
,
[
in
]
BSTR
*
value
)
;
HRESULT
GetSourcePath
(
[
in
]
BSTR
*
folder
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
HRESULT
GetMode
(
[
in
]
MSIRUNMODE
mode
,
[
out
]
BOOL
*
ret
)
;
HRESULT
GetFeatureState
(
[
in
]
BSTR
*
feature
,
[
out
]
INSTALLSTATE
*
installed
,
[
out
]
INSTALLSTATE
*
action
)
;
HRESULT
SetFeatureState
(
[
in
]
BSTR
*
feature
,
[
in
]
INSTALLSTATE
state
)
;
}
...
...
dlls/msi/package.c
View file @
7d93e1a2
...
...
@@ -1618,6 +1618,14 @@ HRESULT WINAPI mrp_GetMode( IWineMsiRemotePackage *iface, MSIRUNMODE mode, BOOL
return
S_OK
;
}
HRESULT
WINAPI
mrp_GetFeatureState
(
IWineMsiRemotePackage
*
iface
,
BSTR
*
feature
,
INSTALLSTATE
*
installed
,
INSTALLSTATE
*
action
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
UINT
r
=
MsiGetFeatureStateW
(
This
->
package
,
(
LPWSTR
)
feature
,
installed
,
action
);
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_SetFeatureState
(
IWineMsiRemotePackage
*
iface
,
BSTR
*
feature
,
INSTALLSTATE
state
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
...
...
@@ -1641,6 +1649,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_SetTargetPath
,
mrp_GetSourcePath
,
mrp_GetMode
,
mrp_GetFeatureState
,
mrp_SetFeatureState
,
};
...
...
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