加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – WinInet vs WinHttp(服务或类似服务的过程)

发布时间:2020-12-13 22:31:52 所属栏目:Windows 来源:网络整理
导读:我无法理解这两个概念“服务或类似服务的过程”之间的区别. 在msdn WinHTTP vs. WinINet页面上说: When selecting between the two,you should use WinINet,unless you plan to run within a service or service-like process that requires impersonation
我无法理解这两个概念“服务或类似服务的过程”之间的区别.

在msdn WinHTTP vs. WinINet页面上说:

When selecting between the two,you should use WinINet,unless you
plan to run within a service or service-like process that requires
impersonation and session isolation.

在msdn note for WinInet function说:

Note WinINet does not support server implementations. In addition,it
should not be used from a service. For server implementations or
services use Microsoft Windows HTTP Services (WinHTTP).

“需要假冒和会话隔离的服务或类似服务的流程”是什么意思?
“WinINet不支持服务器实现”是指在Windows Server上运行?
如果我的应用程序运行IIS我是否使用WinHTTP而不是WinInet?

解决方法

WinINet专为面向人类的应用程序而设计,在某些情况下,它会在用户屏幕上显示错误消息和连接弹出窗口.如果您从服务中使用它,或者没有人可以解除弹出窗口,它将阻止您的应用程序.这就是为什么你不应该使用WinINet,除非你确定用户坐在电脑前等待解除“安装连接”对话框或错误信息.

If my application run with IIS Have I to use WinHTTP instead WinInet?

都不是. IIS有自己的HTTP stack,HTTP.sys驱动程序在内核模式下运行

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读