Sharepoint 2010 server (on a https-url) and local application on a Windows client
The local application is our executable written in C++ / C#
On the site we have documents with extention that has been mapped on the client machine to open in our local application
Clicking on such a document presents a popup asking for Open or Save
Selecting Open causes the document to be downloaded and our application is started by windows with the selected file as the command-line parameter
The problem is that the command-line parameter is set to the local path for the downloaded file
Is there a way to fetch the original url?
Found out myself – use WinINet.lib: http://msdn.microsoft.com/en-gb/library/aa383928.aspx
Include WinINet.lib in project and WinINet.h in source