Sign in to follow this  
Followers 0

Filecreateshortcut Limitations

2 posts in this topic

FileCreateShortcut has a few limitations that can be overcome by using third-party utilities: Icon must either be an ico file or the very first icon of an EXE or DLL. You can not provide an icon index. You cannot define the window run state to be "Minimized" or "Maximized"; the shortcuts always use "Normal."

Why are the above limitations in place? It looks like the IShellLink interface supports them and I don't see any mention of a minimum OS higher than 95/NT. The icon thing isn't so important, but why not allow users to specify the show state? That could be useful since it allows all the SW_* states (SW_HIDE could be particularly useful (or nefarious)).

I was just curious, I probably wasn't around when/if this has been brought up before.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0