win32inet.InternetCheckConnection

InternetCheckConnection(Url, Flags, Reserved)

Allows an application to check if a connection to the Internet can be established

Parameters

Url : string

Url to attempt to connect to, can be None

Flags=0 : int

FLAG_ICC_FORCE_CONNECTION is only defined flag

Reserved=0 : int

Use only 0.