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
c96f1d52
Commit
c96f1d52
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 MsiGetMode.
parent
f935e94a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
install.c
dlls/msi/install.c
+16
-0
msiserver.idl
dlls/msi/msiserver.idl
+2
-0
package.c
dlls/msi/package.c
+8
-0
No files found.
dlls/msi/install.c
View file @
c96f1d52
...
...
@@ -612,8 +612,24 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
{
BOOL
ret
;
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
FALSE
;
hr
=
IWineMsiRemotePackage_GetMode
(
remote_package
,
iRunMode
,
&
ret
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
hr
==
S_OK
)
return
ret
;
return
FALSE
;
}
switch
(
iRunMode
)
{
case
MSIRUNMODE_WINDOWS9X
:
...
...
dlls/msi/msiserver.idl
View file @
c96f1d52
...
...
@@ -26,6 +26,7 @@ import "oaidl.idl";
cpp_quote
(
"#if 0"
)
typedef
unsigned
long
MSIHANDLE
;
typedef
int
INSTALLMESSAGE
;
typedef
int
MSIRUNMODE
;
cpp_quote
(
"#endif"
)
[
...
...
@@ -45,6 +46,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
GetTargetPath
(
[
in
]
BSTR
*
folder
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
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
)
;
}
[
...
...
dlls/msi/package.c
View file @
c96f1d52
...
...
@@ -1611,6 +1611,13 @@ HRESULT WINAPI mrp_GetSourcePath( IWineMsiRemotePackage *iface, BSTR *folder, BS
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_GetMode
(
IWineMsiRemotePackage
*
iface
,
MSIRUNMODE
mode
,
BOOL
*
ret
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
*
ret
=
MsiGetMode
(
This
->
package
,
mode
);
return
S_OK
;
}
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
{
mrp_QueryInterface
,
...
...
@@ -1626,6 +1633,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_GetTargetPath
,
mrp_SetTargetPath
,
mrp_GetSourcePath
,
mrp_GetMode
,
};
HRESULT
create_msi_remote_package
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
...
...
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