SHCreateShortcut

This function creates a shortcut. A remote application interface (RAPI) version of this function exists, and it is called CeSHCreateShortcut.

At a Glance

Header file: Shellapi.h
Windows CE versions: 1.0 and later

Syntax

BOOL SHCreateShortcut(LPTSTR szShortcut, LPTSTR szTarget);

Parameters

szShortcut

Null-terminated string that contains the name of the shortcut to create. Passing a NULL value for this parameter will cause an exception

szTarget

Null-terminated string that contains the target path of the shortcut. The size of the buffer is limited to 256 characters.