Without getting into details about what my program does, I'll get right to the point.
Two of the functions it provides is to either open an image file in the system default program, or to open the containing folder in Explorer. The internals command used with the ShellExecute API are as follows:
To open the file:
"D:\Pictures\2010 Fifa World Cup\Opening Game 0001.jpg"
To open the container file:
explorer.exe /select,"D:\Pictures\2010 Fifa World Cup"
I my particular setup, when I open the file, it opens in Windows Live Photo Gallery, which I've set as my default image viewer.
Now, what I'd like to do is something similar to opening the containing folder, but instead of opening Explorer, Windows Live Photo Gallery must open in folder view, with a specified folder selected - essentially the same as opening the file and then manually clicking on the "Go to gallery" button. I want to be able to open WLXPhotoGallery.exe directly into the specified folder.
Does anybody know what the full command-line switches are for WLXPhotoGallery.exe?
Also, how to determine whether or not Windows Live Photo Gallery is installed, and where, other than reading the the "HKEY_CURRENT_USER\Software\Microsoft\Windows Live\Photo Gallery" registry key (which does not tell me where to find WLXPhotoGallery.exe)