ich möchte gerne, dass meine Anwendung bei Programmstart auf dem PDA automatisch im Startmenü einen Shortcut anlegt. Dazu gibt laut MSDN diese Funktion:
Code: Alles auswählen
SHCreateShortcut
Send Feedback
This function creates a shortcut. A remote application interface (RAPI) version of this function exists, CeSHCreateShortcut (RAPI).
Syntax
DWORD WINAPI SHCreateShortcut(
LPTSTR szShortcut,
LPTSTR szTarget
);
Parameters
szShortcut
[in] Null-terminated string that contains the path and name of the shortcut to create. The shortcut is created at the location identified by the path.
szTarget
[in] Null-terminated string that contains the target path and arguments for the shortcut. The size of the buffer is limited to 256 characters. Place quotes around the target path so that SHCreateShortcut can correctly parse the target file from any following arguments.
Return Values
TRUE indicates success. FALSE indicates failure. FALSE is also returned if the specified shortcut already exists.
...
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Shellapi.h.
Link Library: Coredll.lib.
Finde ich das nur nicht weil woanders versteckt, oder geht's tatsächlich nicht? Und wenn's das nicht gibt, wie kann ich das nachbauen?
CU, der Poelser