procedure TForm1.Timer1Timer(Sender: TObject);
begin
 if InternetCheckConnection('http://www.yahoo.com/', 1, 0)  then
 label1.caption:='连网'
 else
 label1.caption:='没有' ;
end;我用如上代码测试是否连网,但是显示如下代码
  [Error] Unit1.pas(30): Undeclared identifier: 'InternetCheckConnection'
  [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
我分析不出来那里的问题请教高手