Security Guideline

It is important to keep the user informed about possible security issues.

Always notify the user of any change in security, whether it is a security-related error such as a certificate failure, or a change in the security of the underlying protocol, such as change from an HTTPS site to an HTTP site.

When your application receives an error message that may indicate a security problem, the InternetErrorDlg function provides a standard, familiar interface for notifying the user in most cases.

Among the errors that fall in this category are:







A failure to notify the user of errors such as these can expose the user to various sorts of security breaches, including spoofing attacks or involuntary information disclosure.

Notify the User When Connection Security Changes

Always notify the user when the security of the connection changes, for example from HTTPS to HTTP. Otherwise, unless the user has explicitly chosen not to be notified of such changes, you are concealing the risks of involuntary information disclosure.

Among the functions that report such a change in connection security are the InternetStatusCallback callback function and the InternetConfirmZoneCrossing function.


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).