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
0f321c0a
Commit
0f321c0a
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 MsiDoAction.
parent
be5eec45
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
install.c
dlls/msi/install.c
+25
-0
msiserver.idl
dlls/msi/msiserver.idl
+1
-0
package.c
dlls/msi/package.c
+8
-0
No files found.
dlls/msi/install.c
View file @
0f321c0a
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
/* Msi top level apis directly related to installs */
/* Msi top level apis directly related to installs */
#define COBJMACROS
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
...
@@ -28,7 +30,9 @@
...
@@ -28,7 +30,9 @@
#include "wine/debug.h"
#include "wine/debug.h"
#include "msi.h"
#include "msi.h"
#include "msidefs.h"
#include "msidefs.h"
#include "msipriv.h"
#include "msipriv.h"
#include "msiserver.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
@@ -67,8 +71,29 @@ UINT WINAPI MsiDoActionW( MSIHANDLE hInstall, LPCWSTR szAction )
...
@@ -67,8 +71,29 @@ UINT WINAPI MsiDoActionW( MSIHANDLE hInstall, LPCWSTR szAction )
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
if
(
!
package
)
{
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemotePackage_DoAction
(
remote_package
,
(
BSTR
*
)
szAction
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
FAILED
(
hr
))
{
if
(
HRESULT_FACILITY
(
hr
)
==
FACILITY_WIN32
)
return
HRESULT_CODE
(
hr
);
return
ERROR_FUNCTION_FAILED
;
}
return
ERROR_SUCCESS
;
}
ret
=
ACTION_PerformUIAction
(
package
,
szAction
,
-
1
);
ret
=
ACTION_PerformUIAction
(
package
,
szAction
,
-
1
);
msiobj_release
(
&
package
->
hdr
);
msiobj_release
(
&
package
->
hdr
);
...
...
dlls/msi/msiserver.idl
View file @
0f321c0a
...
@@ -40,6 +40,7 @@ interface IWineMsiRemotePackage : IUnknown
...
@@ -40,6 +40,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
GetProperty
(
[
in
]
BSTR
*
property
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
HRESULT
GetProperty
(
[
in
]
BSTR
*
property
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
HRESULT
SetProperty
(
[
in
]
BSTR
*
property
,
[
in
]
BSTR
*
value
)
;
HRESULT
SetProperty
(
[
in
]
BSTR
*
property
,
[
in
]
BSTR
*
value
)
;
HRESULT
ProcessMessage
(
[
in
]
INSTALLMESSAGE
message
,
[
in
]
MSIHANDLE
record
)
;
HRESULT
ProcessMessage
(
[
in
]
INSTALLMESSAGE
message
,
[
in
]
MSIHANDLE
record
)
;
HRESULT
DoAction
(
[
in
]
BSTR
*
action
)
;
}
}
[
[
...
...
dlls/msi/package.c
View file @
0f321c0a
...
@@ -1576,6 +1576,13 @@ HRESULT WINAPI mrp_ProcessMessage( IWineMsiRemotePackage *iface, INSTALLMESSAGE
...
@@ -1576,6 +1576,13 @@ HRESULT WINAPI mrp_ProcessMessage( IWineMsiRemotePackage *iface, INSTALLMESSAGE
return
HRESULT_FROM_WIN32
(
r
);
return
HRESULT_FROM_WIN32
(
r
);
}
}
HRESULT
WINAPI
mrp_DoAction
(
IWineMsiRemotePackage
*
iface
,
BSTR
*
action
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
UINT
r
=
MsiDoActionW
(
This
->
package
,
(
LPWSTR
)
action
);
return
HRESULT_FROM_WIN32
(
r
);
}
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
{
{
mrp_QueryInterface
,
mrp_QueryInterface
,
...
@@ -1586,6 +1593,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
...
@@ -1586,6 +1593,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_GetProperty
,
mrp_GetProperty
,
mrp_SetProperty
,
mrp_SetProperty
,
mrp_ProcessMessage
,
mrp_ProcessMessage
,
mrp_DoAction
,
};
};
HRESULT
create_msi_remote_package
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
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