Add shortcut to DESKTOP

  • Thread starter Thread starter Simone
  • Start date Start date
S

Simone

How can i add a shortcut to an application in the "Desktop" of my POCKET PC
like TOMTOM 3?
PS: The desktop is the "Start window" and it contains
Hour,Contacts,Appointments,Tasks.

Simon.
 
Try this:

static public bool AddShortcut(string applicationPath)
{
return SHCreateShortcut(@"\Windows\Start Menu\" +
Path.GetFileNameWithoutExtension(applicationPath) + ".lnk", "\"" +
applicationPath + "\"");
}


[DllImport("coredll.dll", EntryPoint="SHCreateShortcut")]
private static extern bool SHCreateShortcut(string shortcut, string target);
 
Back
Top