viksoe.dk

CShellLink class


This article was submitted .


A small MFC class that wraps the Windows Shell's shortcut API. Provides a simple way to create a Shell shortcut to a file or folder on the desktop.

Interface

 NameDescription
InitInitialize subsystem.
DoneDestroy subsystem.
IsSupportedAre shortcuts supported (wasn't on Windows 3.1 and WinNT 3.51)
CreateFolderCreate a shell folder.
DeleteFolderDelete a shell folder.
FocusFolderSet focus on a particular folder.
CreateItemCreate a new shortcut.
DeleteItemDelete a shortcut.

Source Code Dependencies

Microsoft MFC Library
My Global MFC functions

Download Files

DownloadSource Code (4 Kb)