uses
WinInet;

{...}

function IsConnectedToInternet: Boolean;
var
dwConnectionTypes: DWORD;
begin
dwConnectionTypes :=
INTERNET_CONNECTION_MODEM +
INTERNET_CONNECTION_LAN +
INTERNET_CONNECTION_PROXY;
Result := InternetGetConnectedState(@dwConnectionTypes, 0);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
if IsConnectedToInternet then
ShowMessage('Connected.')
else
ShowMessage('Not Connected.')
end;


questo è quello che ho trovato e penso che possa essermi utile, ma non capisco.
alla compilazione mi dice:
[Error] Unit1.pas(58): Undeclared identifier: 'dwConnectionTypes'

la user è dichiarata, ma non capisco dove sbaglio???

D6 con win2000pro

:master: :master: