This function retrieves the shortcut’s target path. A remote application interface (RAPI) version of this function exists, and it is called CeSHGetShortcutTarget.
At a Glance
Header file: | Shellapi.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL SHGetShortcutTarget(LPTSTR szShortcut, LPTSTR szTarget, int cbMax);
Parameters
szShortcut
Null-terminated string that contains the name of the shortcut to create.
szTarget
Null-terminated string that gets the target path of the shortcut. The buffer must be at least cbMax characters long.
cbMax
Maximum number of characters that can be copied to the buffer.
Return Values
True indicates success. FALSE indicates failure.