MsiGetShortcutTargetW (msi)
Last changed: -80.152.165.179

.
Summary
Examines a shortcut and returns its product, feature name, and component if available

C# Signature:

[DllImport("msi.dll", CharSet = CharSet.Unicode)]

public static extern UInt32 MsiGetShortcutTargetW(string szShortcutTarget, Out StringBuilder szProductCode, Out StringBuilder szFeatureId, Out StringBuilder szComponentCode);

VB Signature:

Declare Function MsiGetShortcutTargetW Lib "msi.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

StringBuilder sbPc = new StringBuilder(50);

StringBuilder sbFeat = new StringBuilder(100);

StringBuilder sbComp = new StringBuilder(50);

UInt32 i = MsiGetShortcutTargetW("C:\\temp\\word.lnk", sbPc, sbFeat, sbComp);

Documentation