WinCEGeräteSE_Handbuch_Programmierung_v3.00_EN
51 / 65
6.2 Generating and rendering links
Links, or references, are used to refer to other files. In the world of Microsoft, links comprise of special files
(*.lnk). In Windows CE, links are text files that can be modified via Text editor. Links are also recommended
for generating directory entries in the Windows desktop menu structures.
6.2.1 Manually creating links
Follow the procedure below to manually create links on Windows CE devices:
•
Tap with the stylus on the program or folder icon to highlight it.
•
Hold the stylus in position until the pop-up dialogue box opens.
•
Then tap Copy in this box.
•
Tap with the stylus on a free space in the window.
•
Hold the stylus in position until the pop-up dialogue box opens.
•
Then select the Paste Shortcut option in this box.
In addition to the program or folder icon, another Shortcut icon also
appears.
Click this icon to open a file with the extension .lnk .
6.2.2 Creating links in the program
Use the Win32 API function
SHCreateShortcut()
and
SHCreateShortcutEx()
to create links from a
running program. Command line arguments can also be stored in the links you have created.