Just like the way we create a stream to the file using SHCreateStreamOnFile and retrieve the IStream.
I want to open a file which is on the server and retrieve the IStream associated with it (without downloading or copying the contents to a new file)
Here is the line, i am using to retrieve the IStream for a file which is presently on my hard drive.
hr = SHCreateStreamOnFile(Filepath, STGM_READ, &spFileStream);
I need SmartPtr<IStream> so that i can process my file.
How should i retrieve the SmartPtr<IStream> for the file which is on the server for say dropbox or google drive using rest webservices in c++?