VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create A Shortcut On The Desktop/Program File/StartMenu etc...

by urbano da gama (3 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (14 Votes)

This code enables you to create shortcuts on the desktop or startmenu or in the program file. This is especially useful when you need your setup program to create a program shorcut to the desktop which is not provided in the usual setup kit that ships with visual basic.

API Declarations
Public Declare Function OSfCreateShellLink Lib "vb6stkit.dll" Alias "fCreateShellLink" _
(ByVal lpstrFolderName As String, _
ByVal lpstrLinkName As String, _
ByVal lpstrLinkPath As String, _
ByVal lpstrLinkArguments As String, _
ByVal fPrivate As Long, _
ByVal sParent As String) As Long

Rate Create A Shortcut On The Desktop/Program File/StartMenu etc...

Download Create A Shortcut On The Desktop/Program File/StartMenu etc...

Download Create A Shortcut On The Desktop/Program File/StartMenu etc... (3 KB)

Create A Shortcut On The Desktop/Program File/StartMenu etc... Comments

No comments have been posted about Create A Shortcut On The Desktop/Program File/StartMenu etc.... Why not be the first to post a comment about Create A Shortcut On The Desktop/Program File/StartMenu etc....

Post your comment

Subject:
Message:
0/1000 characters