Hi,

Good suggestion, thank you...

No, it is not interactive service.

In fact, I have a tiny program run as a control panel so the user can pass
some parameters to the service (by using common file), so I will make this
program will pass the internet options too.

Monir

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul
Sent: Tuesday, March 20, 2007 2:35 PM
To: Borland's Delphi Discussion List
Subject: Re: Reading Internet options in TService

Is it an interactive service ?

You can always write a small install prog for your service and store the 
proxy data in the registry (in HKLM) and read them from within your service.
For security, you'll have to encrypt any passwords stored there

Paul


----- Original Message ----- 
From: "Monir-SitesPower" <[EMAIL PROTECTED]>
To: "'Borland's Delphi Discussion List'" <delphi@elists.org>
Sent: Monday, March 19, 2007 6:30 PM
Subject: RE: Reading Internet options in TService


> Thank you for your answer,
> What is the alternate way?
> WinInet InternetQueryOption function is not working too!
>
> Monir.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf
> Of Paul
> Sent: Monday, March 19, 2007 3:27 PM
> To: Borland's Delphi Discussion List
> Subject: Re: Reading Internet options in TService
>
> You are not allowed to from HKEY_CURRENT_USER in a service
>
> Paul
>
> ----- Original Message ----- 
> From: "Monir-SitesPower" <[EMAIL PROTECTED]>
> To: <Delphi@elists.org>
> Sent: Monday, March 19, 2007 1:31 PM
> Subject: Reading Internet options in TService
>
>
>> Hi,
>> To read the proxy address and port I use one of the followings way:
>> 1- Using registry by reading it from
>> //HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
>> Settings.
>>
>> 2- Using WinInet InternetQueryOption function with INTERNET_OPTION_PROXY
>> parameter.
>>
>> Both ways are working fine in ordinary Delphi application, but they are
>> always gives empty results when I use the same code in service 
>> application
>> (TService).
>>
>> Can you please help in solving this problem?
>>
>> Thank you
>>
>> _______________________________________________
>> Delphi mailing list -> Delphi@elists.org
>> http://www.elists.org/mailman/listinfo/delphi
>>
>>
>
> _______________________________________________
> Delphi mailing list -> Delphi@elists.org
> http://www.elists.org/mailman/listinfo/delphi
>
> _______________________________________________
> Delphi mailing list -> Delphi@elists.org
> http://www.elists.org/mailman/listinfo/delphi
>
> 

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

Reply via email to