我无法理解“服务或类服务过程”这两个概念之间的区别。
在 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.
在 WinInet function 的 msdn 注释中说:
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).
“需要模拟和 session 隔离的服务或类似服务的进程”是什么意思?
“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 驱动程序
关于windows - WinInet 与 WinHttp(服务或类似服务的进程),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11992523/