views:

166

answers:

0

In Windows 7 you can create a Shortcut (on the desktop for example) of am image and the image is displayed as the Icon (with a short cut arrow overlaid). This is done by the operating system when you right click on the image and choose Send To -> Desktop (create Shortcut). I want to replicate the creation of this shortcut.

Available is code to create a shortcut with IShellLink and IPersistFile. You can find the code here:

http://msdn.microsoft.com/en-us/library/bb776891%28VS.85%29.aspx

However, when I implement this the icon is the standard default icon for images, not the image itself. I assume I have to send a coded string to SetIconLocation to have it render the image and not the Image icon. Can someone help me get a Shortcut like the desktop creates?

Thanks, Wayne

{6230289B-5BEE-409e-932A-2F01FA407A92}