Solved

Log internet activity

Posted on 2000-05-02
2
145 Views
Last Modified: 2010-04-04
I've been asked to write a program for NT that logs all internet activity.  I just want to know how to get a list of web sites that I am currently connected to from within Delphi 4.

Any ideas?

John.
0
Comment
Question by:Jaymol
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 250 total points
ID: 2769532
hi john,maybe this helps:
add ddeman to uses section then use this
code from a paq ,dunno who from

function Get_URL(Servicio: string): String;
var
Cliente_DDE: TDDEClientConv;
begin
Result := '';
Cliente_DDE:= TDDEClientConv.Create( nil );
with Cliente_DDE do
 begin
SetLink( Servicio,'WWW_GetWindowInfo');
Result := StrPas(RequestData('0xFFFFFFFF'));
CloseLink;
end;
Cliente_DDE.Free;
end;

procedure TForm1.Button1Click(Sender);
begin
 showmessage(Get_URL('Netscape'));
    or
 showmessage(Get_URL('IExplore'));
end;
0
 
LVL 6

Author Comment

by:Jaymol
ID: 2772740
As always, thanks for a superb answer!!

Ta,

John.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question