download a file using windows IStream

穿精又带淫゛_ 提交于 2020-01-01 03:38:06

问题


I'm implementing dragging a virtual file out of a website and onto the desktop with an activex control.

How do I create an IStream on my http url, so Windows can execute the drop?

The example I'm looking at uses SHCreateStreamOnFile to copy a local file; there must be an analogous function for other types of streams like http file download.


回答1:


How about using the URL Moniker Functions. You can use the URLDownloadToFile (blocking function), or URLOpenPullStream (asynchronous).



来源:https://stackoverflow.com/questions/3168145/download-a-file-using-windows-istream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!