AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

Adding Shortcuts in Windows 95

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","")

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/