dcsimg
July 20, 2018
Hot Topics:

Adding Shortcuts to Windows 95

  • November 19, 2002
  • By James Limm
  • Send Email »
  • More Articles »

If you would like to add a shortcut to your program in the Start Menu, you can use the undocumented API call that is used in the setupkit.

Declarations

You must declare the following in the declarations section of a project.

Declare Function fCreateShellLink Lib_
"STKIT432.DLL" _
(ByVal lpstrFolderName as String, ByVal_
lpstrLinkName _
as String, ByVal lpstrLinkPath_
as String, ByVal _
lpstrLinkArgs as String) As Long

Use

To add a shortcut to the Start Menu, you call the function with these parameters:

  • Where to place the link in relation to the Programs folder on the Start Menu.
  • Name or Text to appear in the link.
  • Path of the file to link to.
  • Arguments for the file.

For instance, to add a shortcut to the desktop, you would use the following code:

lngResult = fCreateShellLink("....Desktop", _
"Link to my program", "C:\Path\Program.exe","")





Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date