Shell_CreateShortcut¶
Shell_CreateShortcut erstellt eine Verknüpfung zu einem Programm oder einer Datei auf dem Desktop, im Programmmenü oder an anderen Orten.
- bool = Shell_CreateShortcut(ssLinkTarget, ssArgs, ssLinkName, ssFolder, ssDescription, ssIconPath, nIconIndex)
Returnwert
bool ist TRUE (1) wenn der Aufruf erfolgreich war und sonst FALSE (0).
Parameter
- ssLinkTarget
ssLinkTarget ist das Ziel, z. B.
GetRootDirectory() + "program/uniplot.exe"
.
- ssArgs
ssArgs sind die Start-Argumente. Kann leerer String sein.
- ssLinkName
ssLinkName ist der Name des Links z. B.
UniPlot 5.2
.
- ssFolder
ssFolder ist das Verzeichnis, siehe Shell_GetSpecialFolder.
- ssDescription
ssDescription ist die Beschreibung der Verknüpfung.
- ssIconPath
ssIconPath ist der vollständige Pfad der exe-Datei oder DLL die Icons enthält, z. B.
GetRootDirectory() + "program/uniplot.exe"
.
- nIconIndex
nIconIndex ist der Index des Icons (0 für das erste Icon).
Beispiel
ssUniPlot = GetRootDirectory() + "program/uniplot.exe";
ssFolder = Shell_GetSpecialFolder(2); // Start Menu\Programs
print Shell_CreateShortcut(ssUniPlot, "", "UniPlot-5.2.1", ..
ssFolder, "", ssUniPlot, 0);
History
Version |
Beschreibung |
---|---|
5.3.0 |
Neu. |
Siehe auch
id-361107