Shortcut on startmenu

Hi all,
I want to create a shortcut on the startmenu, how do I do that?
svenjAsked:
Who is Participating?
 
freterConnect With a Mentor Commented:
depends on where in the startmenu you want to place it.
on the bottom line, it is just creating a shortcut on the folder
"C:\WINNT\Profiles\All Users\Startmenu"
or
"C:\WINNT\Profiles\YourUserName\Startmenu"

as you may already have guessed, the name of this directory is highly variable (depends on wether your app runs on Win9x/WinNT and the language of the OS). therefore, you should check the right location by calling SHGetSpecialFolderLocation with the CSIDL_PERSONAL and CSIDL_APPDATA constants, respectively.

more information on creating shortcuts and using the SHGetSpecialFolderLocation function can be found on UNDU:

http://www.undu.com/Articles/980318b.htm

THT,
</freter>
0
All Courses

From novice to tech pro — start learning today.