SHCreateShortcut

The SHCreateShortcut function creates a shortcut.

Syntax

BOOL SHCreateShortcut(LPTSTR szShortcut, LPTSTR szTarget);

At a Glance

Header file: Shellapi.h
Platforms: H/PC
Versions: 1.0 and later

Parameters

szShortcut
Pointer to a buffer that contains the name of the shortcut to create. Passing a NULL value for this parameter will cause an exception
szTarget
Pointer to a buffer that contains the target path of the shortcut. The size of the buffer is limited to 256 characters.