Free software download, over 150.000 software free downloads

ShellLink 1.0

Read and write shortcut files from managed code.


  • Version:1.0
  • Date Added:11/11/2011 7:37:19 PM
  • License:Freeware
  • Price:$0
  • Total Downloads:192
  • Last Week Downloads:4
  • Operating System:Windows XP/2000/98/Me

Publisher's description

ShellLink This sample demonstrates how to read and write shortcut files from managed code. It includes definitions of the COM interfaces and coclasses needed. Included is also a more .NET friendly wrapper class, called ShellShortcut, that takes care of most of the dirty work. To demonstrate the usage of the ShellShortcut class, a simple shortcut editor form is included. To use shortcuts in your own code, simply include the files ShellLinkNative.cs and ShellShortcut.cs in your project. DetailsShortcuts are created and modified using a COM API, where the ShellLink coclass is the most important part. It implements the IShellLink interface (which exists in two versions, IShellLinkA for ANSI and IShellLinkW for Unicode) used to manipulate the shortcut itself, and the IPersistFile interface for opening and saving shortcut files. (It also implements the IShellLinkDataList interface to store extra data with shortcuts, and a number of other interfaces we don't care about).There are two ways to get access to this coclass and its related interfaces in managed code. The first is to Declare them all in a type library, then use the TlbImp tool to Create a managed Assembly from it. The second way, used in this sample, is to declare all of it ourselves in code. The advantage of doing it this way is that you get one less assembly to care about. But it also means you have to understand the details about COM interop and marshaling.The coclass and the interfaces are marked with the ComImport and Guid attributes. The interfaces also need the InterfaceType attribute. Then some of the methods and method parameters need attributes as well to ensure correct marshaling. The .NET interop documentation explains all this fairly well.


Please be aware that downloadbee do not supply any crack, patches, serial numbers or keygen for ShellLink,and please consult directly with program authors for any problem with ShellLink.