This resource is used to create shortcuts on the Start menu or on the desktop.
Note To include standard shortcuts on the Start menu, add the Standard Start Menu Shortcuts component to your configuration.
The following extended properties can be set for the Start Menu Shortcuts resource in Component Designer or in Target Designer.
- Arguments - Type - Required or optional - String - Optional - Command-line arguments passed to the application invoked by the shortcut. Arguments containing paths should use environment variables in path names. For more information, see Predefined System Environment Variables. 
- ComponentVSGUID - Type - Required or optional - GUID - Not applicable - Reserved for Microsoft. 
- DstName - Type - Required or optional - String - Required - Name of the .lnk file generated for the shortcut, for example, MyShortcut.lnk. 
- DstPath - Type - Required or optional - String - Required - Location of the .lnk file. This path determines where the shortcut will appear. For example, to place a shortcut on the desktop for all users, use %16409%. Use environment variables in path names. For more information, see Predefined System Environment Variables. 
- Hotkey - Type - Required or optional - String - Optional - Assigns a key combination to the shortcut. The syntax is [KeyModifier]KeyName. The key modifier can be any one of the following: ALT, CTRL, or SHIFT. The key name can be one of the following: A through Z, 0 through 9, F1 through F12. For example, ALT+T, or CTRL+F10. The key name is case insensitive. 
- IconLocation - Type - Required or optional - String - Optional - Assigns an icon to the shortcut. This is specified as the name of an executable file on the target system followed by a comma and an icon resource identifier, for example, Notepad.exe,0. If not specified, Windows XP Embedded assigns a default icon. This is typically the icon resource with identifier 0 in the target executable file of the shortcut. 
- Overwrite - Type - Required or optional - Boolean - Required - If True, then Target Designer overwrites an existing shortcut file that has the same name in the same location. The default is False. 
- TargetPath - Type - Required or optional - String - Required - Path of the application invoked by the shortcut. Use environment variables path names. For more information, see Predefined System Environment Variables. For example, to create a shortcut for Notepad, use %11%\notepad.exe. 
- WindowStyle - Type - Required or optional - Integer - Required - Determines the window style for the application invoked by the shortcut. Possible values are: - 1: Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position.
- 3: Activates the window and displays it as a maximized window.
- 7: Minimizes the window and activates the next top-level window.
 
- WorkDir - Type - Required or optional - String - Optional - Specifies the initial working directory for the application invoked by the shortcut. 
In addition the shortcut resource's extended properties, you can set the resource's Description field at the top of the dialog box. This is used as the shortcut's Comment field that is displayed when you right-click the shortcut, and then choose Properties.
See Also
Last updated on Wednesday, October 18, 2006
© 2006 Microsoft Corporation. All rights reserved.