InternetHangUp function (winineti.h)

Instructs the modem to disconnect from the Internet.


DWORD InternetHangUp(
  [in] DWORD_PTR dwConnection,
  [in] DWORD     dwReserved


[in] dwConnection

Connection number of the connection to be disconnected.

[in] dwReserved

This parameter is reserved and must be 0.

Return value

Returns ERROR_SUCCESS if successful, or an error value otherwise.


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


Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winineti.h (include Wininet.h)
Library Wininet.lib
DLL Wininet.dll

See also

Establishing a Dial-Up Connection to the Internet

WinINet Functions