使用 Windows IStream 下载文件

发布于 2024-09-07 20:17:56 字数 375 浏览 2 评论 0原文

我正在使用 activex 控件实现将虚拟文件从网站拖到桌面上。

如何创建 IStream我的 http url,以便 Windows 可以执行 drop?

我正在查看的示例使用 SHCreateStreamOnFile复制本地文件;对于其他类型的流,例如 http 文件下载,必须有类似的功能。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〃安静 2024-09-14 20:17:56

如何使用 URL Moniker 函数< /a>.您可以使用 URLDownloadToFile (阻止功能),或 URLOpenPullStream (异步)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文