SHCreateShortcut

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

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.

Return Values

True indicates success. FALSE indicates failure.

Remarks

This function is not prototyped correctly in the Shellapi.h file. It returns a BOOL instead of a DWORD.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Shellapi.h   Shortcut.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.