Partager via


SHGetShortcutTarget

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function retrieves the shortcut's target path. A remote application interface (RAPI) version of this function exists, CeSHGetShortcutTarget (RAPI).

Syntax

BOOL SHGetShortcutTarget(
  LPTSTR szShortcut, 
  LPTSTR szTarget, 
  int cbMax 
);

Parameters

  • szShortcut
    [in] Null-terminated string that contains the name of the shortcut.
  • szTarget
    [in] Null-terminated string that gets the target path of the shortcut. The buffer must be at least cbMax characters long.
  • cbMax
    [in] Maximum number of characters that can be copied to the buffer.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header shellapi.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Standard Shell Functions