Before you call CreateFile
, you need the name of a file. You can of course create your own dialog:
- enumerates drives, folders, or the shell namespace
- allow the user to navigate
- show files in selected folder
- and let the user pick a file and close the dialog
But fortunately Windows already did all the UI heavy lifting, and provided you an IFileOpenDialog
common dialog:
Does the same exist for creating a link?
Windows Explorer has a dialog that guides the user through creating a shortcut to a file, folder, item, url, etc:
Is this dialog a "common" dialog - available for use by applications?
Edit: Also a reminder: I'm not looking to invoke the wizard - because the wizard creates the link on the hard drive. And i don't want it saved on the hard drive. I need the ability to get the resulting:
IShellLink
orIUniformResourceLocator
,
or the
- Location
- Title
that the user entered.
I need a "location picker" user interface.