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
481bccc8
Commit
481bccc8
authored
Oct 29, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an implementation for MsiGetShortcutTargetA/W.
parent
a2fb7c16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
2 deletions
+57
-2
msi.c
dlls/msi/msi.c
+57
-2
No files found.
dlls/msi/msi.c
View file @
481bccc8
...
...
@@ -35,6 +35,9 @@
#include "wincrypt.h"
#include "winver.h"
#include "winuser.h"
#include "shlobj.h"
#include "shobjidl.h"
#include "objidl.h"
#include "wine/unicode.h"
#include "action.h"
...
...
@@ -1720,6 +1723,9 @@ UINT WINAPI MsiCreateAndVerifyInstallerDirectory(DWORD dwReserved)
return
0
;
}
/***********************************************************************
* MsiGetShortcutTargetA [MSI.@]
*/
UINT
WINAPI
MsiGetShortcutTargetA
(
LPCSTR
szShortcutTarget
,
LPSTR
szProductCode
,
LPSTR
szFeatureId
,
LPSTR
szComponentCode
)
...
...
@@ -1746,12 +1752,61 @@ UINT WINAPI MsiGetShortcutTargetA( LPCSTR szShortcutTarget,
return
r
;
}
/***********************************************************************
* MsiGetShortcutTargetW [MSI.@]
*/
UINT
WINAPI
MsiGetShortcutTargetW
(
LPCWSTR
szShortcutTarget
,
LPWSTR
szProductCode
,
LPWSTR
szFeatureId
,
LPWSTR
szComponentCode
)
{
FIXME
(
"%s
\n
"
,
debugstr_w
(
szShortcutTarget
));
return
ERROR_CALL_NOT_IMPLEMENTED
;
IShellLinkDataList
*
dl
=
NULL
;
IPersistFile
*
pf
=
NULL
;
LPEXP_DARWIN_LINK
darwin
=
NULL
;
HRESULT
r
;
TRACE
(
"%s %p %p %p
\n
"
,
debugstr_w
(
szShortcutTarget
),
szProductCode
,
szFeatureId
,
szComponentCode
);
r
=
CoInitialize
(
NULL
);
if
(
FAILED
(
r
)
)
return
ERROR_FUNCTION_FAILED
;
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
if
(
SUCCEEDED
(
r
)
)
{
r
=
IPersistFile_Load
(
pf
,
szShortcutTarget
,
STGM_READ
|
STGM_SHARE_DENY_WRITE
);
if
(
SUCCEEDED
(
r
)
)
{
r
=
IPersistFile_QueryInterface
(
pf
,
&
IID_IShellLinkDataList
,
(
LPVOID
*
)
dl
);
if
(
SUCCEEDED
(
r
)
)
{
IShellLinkDataList_CopyDataBlock
(
dl
,
EXP_DARWIN_ID_SIG
,
(
LPVOID
)
&
darwin
);
IShellLinkDataList_Release
(
dl
);
}
}
IPersistFile_Release
(
pf
);
}
CoUninitialize
();
TRACE
(
"darwin = %p
\n
"
,
darwin
);
if
(
darwin
)
{
DWORD
sz
;
UINT
ret
;
ret
=
MsiDecomposeDescriptorW
(
darwin
->
szwDarwinID
,
szProductCode
,
szFeatureId
,
szComponentCode
,
&
sz
);
LocalFree
(
darwin
);
return
ret
;
}
return
ERROR_FUNCTION_FAILED
;
}
UINT
WINAPI
MsiReinstallFeatureW
(
LPCWSTR
szProduct
,
LPCWSTR
szFeature
,
...
...
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