When a shortcut file is double-clicked in Windows, the shell dereferences the shortcut and launches the application associated with the file type from the dereferenced shortcut, in other words the path to the actual file. The application receives the dereferenced path instead of the path to the shortcut.
In our application, the user is saving shortcuts to image files as well as updated image files. That is, shortcut files are used to categorize an image file; e.g. "roses", "large\flowers", "floral". The image file itself is stored in a hidden directory.
When a user double-clicks a shortcut and the shell launches our editing/viewing application to display the image, the application correctly displays the image but all path information to the shortcut from which the application was launched is lost.
The question is how to obtain a path to the shortcut file which initiated the application. In other words, is their a way to capture the path to the shortcut file that is double clicked before it is dereferenced by the Shell.
The application is a proprietary app of which we are writing all of the code, so we are flexible with any solution down to a code level.