uses WinInet;
const
INTERNET_RAS_INSTALLED = $10 ;
INTERNET_CONNECTION_OFFLINE = $20 ;
INTERNET_CONNECTION_CONFIGURED = $40 ;
function InternetCon:Boolean; //Connected : True
var
dwConnectionTypes: DWORD;
begin
if(InternetGetConnectedState(@dwConnectionTypes, 0)) then
begin
if((dwConnectionTypes and INTERNET_CONNECTION_MODEM) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_CONNECTION_LAN) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_CONNECTION_PROXY) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_CONNECTION_MODEM_BUSY) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_RAS_INSTALLED) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_CONNECTION_OFFLINE) <> 0)then Result := True;
if((dwConnectionTypes and INTERNET_CONNECTION_CONFIGURED) <> 0)then Result := True;
end
else Result := False;
end;
피드 구독하기:
글 (Atom)
Delphi : DateUtils.pas 날짜함수 정리
http://www.delmadang.com/community/bbs_view.asp?bbsNo=21&bbsCat=0&indx=209893&page=41 델파이에 날짜함수를 모아둔 DateUtils.pas 가 있습니다. ...
-
Forms Delphi Applications without Forms? From: bpeck@prairienet.org (Bob Peck) You bet! First, select File|New Project and choos...
-
<자료형(data types)> 단순형 문자열형 구조형 포인터형 가변형 정수형 문자형 대수형 열거형 범위형 실수형 단문자열형 장문자열형 광포(Wide) 문자열형 배열형 레코드형 집합형 무...
-
Linux 리눅스명령어(시스템 정보) 1. ps ( process ) - 현재 진행중인 프로세스의 정보를 출력합니다. 2. pstree ( process tree) - ps 에 의해 출력되는 프로세스 정보를 트리 형태로 나타냅니다. 3. top - c...