تبليغاتX
راسک - آيا کامپيوتر به شبکه متصل است؟
راسک
procedure TForm1.Button1Click(Sender: TObject);
begin
  if GetSystemMetrics(SM_NETWORK) and $01 = $01 then
    ShowMessage('Computer is attached to a network!')
  else
    ShowMessage('Computer is not attached to a network!');
end;

+ نوشته شده در سه شنبه ششم شهریور 1386ساعت 15:56 توسط علی دانشمند |