Hi all,
I have write a simple program in c# that change proxy setting for IE7
by edit these registry keys:
HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings]
"ProxyEnable"=d word:00000001
"ProxyServer"=" localhost:8118"
[HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings\Connec tions]
"DefaultConnect ionSettings"=he x:46,00,00,00,4 3,05,00,00,03,0 0,00,00,0e,
00,00,00,6c,6f, 63,61,6c,68,6f, 73,74,3a,
38,31,31,38,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,*
00,00,00,00,00
But... the changes are not applyed in real-time in IE7, I have to open
an other browser for use the new settings.
I have add to my program a system messagge:
public enum SendMessageTime outFlags : uint
{
SMTO_NORMAL = 0x0000,
SMTO_BLOCK = 0x0001,
SMTO_ABORTIFHUN G = 0x0002,
SMTO_NOTIMEOUTI FNOTHUNG = 0x0008
}
[DllImport("user 32.dll", SetLastError = true, CharSet =
CharSet.Auto)]
static extern IntPtr SendMessageTime out(IntPtr hWnd, uint Msg,
UIntPtr wParam, UIntPtr lParam, SendMessageTime outFlags fuFlags, uint
uTimeout, out UIntPtr lpdwResult);
IntPtr HWND_BROADCAST = new IntPtr(0xffff);
IntPtr WM_SETTINGCHANG E = new IntPtr(0x001A);
[...]
SendMessageTime out(HWND_BROADC AST, (uint)WM_SETTIN GCHANGE,
UIntPtr.Zero, UIntPtr.Zero, SendMessageTime outFlags.SMTO_N ORMAL, 1000,
out result);
But IE7 ignore the signal....
Do you have any suggestion for make active my changes in real-time?
Ciao! 12 7254
Hi,
You better post this message in one of the IE ng, or in a win32 API NG.
I do know that there is cases where this is the case, for example installing
google toolbar, if you have an open windows the toolbar does not appear
there.
"MC" <no*****@gmail. comwrote in message
news:11******** **************@ w3g2000hsg.goog legroups.com...
Hi all,
I have write a simple program in c# that change proxy setting for IE7
by edit these registry keys:
HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings]
"ProxyEnable"=d word:00000001
"ProxyServer"=" localhost:8118"
[HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings\Connec tions]
"DefaultConnect ionSettings"=he x:46,00,00,00,4 3,05,00,00,03,0 0,00,00,0e,
00,00,00,6c,6f, 63,61,6c,68,6f, 73,74,3a,
38,31,31,38,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,*
00,00,00,00,00
But... the changes are not applyed in real-time in IE7, I have to open
an other browser for use the new settings.
I have add to my program a system messagge:
public enum SendMessageTime outFlags : uint
{
SMTO_NORMAL = 0x0000,
SMTO_BLOCK = 0x0001,
SMTO_ABORTIFHUN G = 0x0002,
SMTO_NOTIMEOUTI FNOTHUNG = 0x0008
}
[DllImport("user 32.dll", SetLastError = true, CharSet =
CharSet.Auto)]
static extern IntPtr SendMessageTime out(IntPtr hWnd, uint Msg,
UIntPtr wParam, UIntPtr lParam, SendMessageTime outFlags fuFlags, uint
uTimeout, out UIntPtr lpdwResult);
IntPtr HWND_BROADCAST = new IntPtr(0xffff);
IntPtr WM_SETTINGCHANG E = new IntPtr(0x001A);
[...]
SendMessageTime out(HWND_BROADC AST, (uint)WM_SETTIN GCHANGE,
UIntPtr.Zero, UIntPtr.Zero, SendMessageTime outFlags.SMTO_N ORMAL, 1000,
out result);
But IE7 ignore the signal....
Do you have any suggestion for make active my changes in real-time?
Ciao!
I wouldn't be surprized if you couldn't. Like Ignacio said, you will
probably have a better result in an IE newsgroup.
However, what I can tell you is that this isn't the way you should be
changing the settings. Rather, you should be using the InternetSetOpti on
API in the WinInet library. This might affect running instances, but I
can't say for sure.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"MC" <no*****@gmail. comwrote in message
news:11******** **************@ w3g2000hsg.goog legroups.com...
Hi all,
I have write a simple program in c# that change proxy setting for IE7
by edit these registry keys:
HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings]
"ProxyEnable"=d word:00000001
"ProxyServer"=" localhost:8118"
[HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
Settings\Connec tions]
"DefaultConnect ionSettings"=he x:46,00,00,00,4 3,05,00,00,03,0 0,00,00,0e,
00,00,00,6c,6f, 63,61,6c,68,6f, 73,74,3a,
38,31,31,38,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,00, 00,00,00,00,*
00,00,00,00,00
But... the changes are not applyed in real-time in IE7, I have to open
an other browser for use the new settings.
I have add to my program a system messagge:
public enum SendMessageTime outFlags : uint
{
SMTO_NORMAL = 0x0000,
SMTO_BLOCK = 0x0001,
SMTO_ABORTIFHUN G = 0x0002,
SMTO_NOTIMEOUTI FNOTHUNG = 0x0008
}
[DllImport("user 32.dll", SetLastError = true, CharSet =
CharSet.Auto)]
static extern IntPtr SendMessageTime out(IntPtr hWnd, uint Msg,
UIntPtr wParam, UIntPtr lParam, SendMessageTime outFlags fuFlags, uint
uTimeout, out UIntPtr lpdwResult);
IntPtr HWND_BROADCAST = new IntPtr(0xffff);
IntPtr WM_SETTINGCHANG E = new IntPtr(0x001A);
[...]
SendMessageTime out(HWND_BROADC AST, (uint)WM_SETTIN GCHANGE,
UIntPtr.Zero, UIntPtr.Zero, SendMessageTime outFlags.SMTO_N ORMAL, 1000,
out result);
But IE7 ignore the signal....
Do you have any suggestion for make active my changes in real-time?
Ciao!
On 24 Set, 07:47, "Nicholas Paldino [.NET/C# MVP]"
Rather, you should be using the InternetSetOpti on
API in the WinInet library. This might affect running instances, but I
can't say for sure.
Yes.... is it the only (and correct) way for change proxy settings
without having to restart Internet Explorer.... :-((((((
I have to rewrite my little tool....
thank you!
Ciao!
I have a custom application built running on my desktop, there's no way to
do this live. You have to close and re-open the browser or run a new
instance of IE. Even opening a new tab doesn't do the trick.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
OWC Black Book 2nd Edition coming soon.
"MC" <no*****@gmail. comwrote in message
news:11******** **************@ 57g2000hsv.goog legroups.com...
On 24 Set, 07:47, "Nicholas Paldino [.NET/C# MVP]"
>Rather, you should be using the InternetSetOpti on API in the WinInet library. This might affect running instances, but I can't say for sure.
Yes.... is it the only (and correct) way for change proxy settings
without having to restart Internet Explorer.... :-((((((
I have to rewrite my little tool....
thank you!
Ciao!
On 24 Set, 17:25, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
I have a custom application built running on my desktop, there's no way to
do this live. You have to close and re-open the browser or run a new
instance of IE. Even opening a new tab doesn't do the trick.
No dear Alvin!
I have just rewrite my application using WinINet API (always with C# )
and now I can change proxy settings without having to restart IE.
I have used InterntOption with options:
INTERNET_OPTION _SETTINGS_CHANG ED
INTERNET_OPTION _REFRESH
for applying real-time configuration settings, and:
INTERNET_PER_CO NN_FLAGS
INTERNET_PER_CO NN_PROXY_SERVER
for enable and set proxy server name.
You can use an hybrid app that use registry keys for setting proxy
name and anable it, and the InternetOptions :
INTERNET_OPTION _SETTINGS_CHANG ED
INTERNET_OPTION _REFRESH
for apply changes without restart IE.
Ciao!!
Hi
Is your tool available?
I have the same problem.
--
TIA
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. ( http://www.emoreau.com)
Membre du réseau .NET Expertise www.dotnet-expertise.com
"MC" <no*****@gmail. comwrote in message
news:11******** **************@ w3g2000hsg.goog legroups.com...
On 24 Set, 17:25, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
>I have a custom application built running on my desktop, there's no way to do this live. You have to close and re-open the browser or run a new instance of IE. Even opening a new tab doesn't do the trick.
No dear Alvin!
I have just rewrite my application using WinINet API (always with C# )
and now I can change proxy settings without having to restart IE.
I have used InterntOption with options:
INTERNET_OPTION _SETTINGS_CHANG ED
INTERNET_OPTION _REFRESH
for applying real-time configuration settings, and:
INTERNET_PER_CO NN_FLAGS
INTERNET_PER_CO NN_PROXY_SERVER
for enable and set proxy server name.
You can use an hybrid app that use registry keys for setting proxy
name and anable it, and the InternetOptions :
INTERNET_OPTION _SETTINGS_CHANG ED
INTERNET_OPTION _REFRESH
for apply changes without restart IE.
Ciao!!
On 25 Set, 03:08, "Eric Moreau" <eric.moreau_NO _SP...@videotro n.ca>
wrote:
Hi
Is your tool available?
;-)
Yes,
but you have to wait a few days for bug fixing.
Ciao!!!!
Ok Guys,
you can try it! http://www.redtomahawk.com/xml/prod/TorActivator.html
The installation is a fake. Or to be more precise, the installation
procedure do:
1. Extract files:
1.1. TOR_Activator.d ll
1.2. TOR_Activator_G UI.exe
1.3. data\proxy.xml
2. Put this files in your favorite location (default: <ProgramFiles >
\RedTomahawk.Co m\TOR Activator for IE7\data)
3. Create Menů Shortcut.
4. Done.
If you want, after installation, you can redistribute the software by
copy/paste of the installation folder.
Hey Guys, don't panic, "TOR Activator" is a little little tool not
still fully debugged.
Bye!
PS: the firm RedTomahawk.com is another fake... :-) It's my
hobby ;-))))
On 25 Set, 12:24, MC <nous...@gmail. comwrote:
[...]
Hi
It doesn't work for me. I have added http://fastweb.bell.ca:8083/ in the
list of proxy and when I click the enabled checkbox I see a hourglass but it
never change the settings in IE 7 (even if IE is closed at that time).
I also tried to remove the http:// without success.
--
Thanks
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. ( http://www.emoreau.com)
Membre du réseau .NET Expertise www.dotnet-expertise.com
"MC" <no*****@gmail. comwrote in message
news:11******** *************@n 39g2000hsh.goog legroups.com...
Ok Guys,
you can try it! http://www.redtomahawk.com/xml/prod/TorActivator.html
The installation is a fake. Or to be more precise, the installation
procedure do:
1. Extract files:
1.1. TOR_Activator.d ll
1.2. TOR_Activator_G UI.exe
1.3. data\proxy.xml
2. Put this files in your favorite location (default: <ProgramFiles >
\RedTomahawk.Co m\TOR Activator for IE7\data)
3. Create Menů Shortcut.
4. Done.
If you want, after installation, you can redistribute the software by
copy/paste of the installation folder.
Hey Guys, don't panic, "TOR Activator" is a little little tool not
still fully debugged.
Bye!
PS: the firm RedTomahawk.com is another fake... :-) It's my
hobby ;-))))
On 25 Set, 12:24, MC <nous...@gmail. comwrote:
[...] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alexandr Molochnikov |
last post by:
Hello group,
I am trying to cut down the number of ports that must be opened in a
firewall to let the client talk to the protected server. The server runs its
own registry process by calling LocateRegistry.createRegistry(port), and the
same port is used when UnicastRemoteObjects are exported. This way, I can
tell the firewall admin to open only one hole in the firewall, instead of
two.
It all works, until I attempt to use a custom...
|
by: sonic_soul |
last post by:
Hi,
I was curious if I could make my webservice work with firefox client
webservice functionality. (i got it to work with webservice.htc)
I am able to get firefox to see my serverside web service methods
(instantiate a proxy and alert proxy.MyMethod to tell its a valid
function), but when I submit to them, I either get, "Cannot convert
javascript arg 0" or "not enough arguments" javascript errors. I am
thinking that perhaps firefox does...
|
by: Zürcher See |
last post by:
I'm trying to set a value in the registry in order to configure IE so that
it uses a proxy
I found out that there are two values:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ProxyEnabled
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ProxyServer
|
by: Clint |
last post by:
Hey all -
I'm having a really confusing problem concerning a web service. Right
now, I have an application that needs to call a web service that does
nothing but return "true" (this will obviously change once the
program's fully built to actually do something, but for testing, it
works).
The only code I added to the service is below:
|
by: DWrek |
last post by:
Hi Everyone,
I have a .NET dll that uses the HTTPWebRequest class to make an HTTP
connection to an off-site server. This dll works just fine from a Winform but
when I try to use it from an ASP page (via COM Interop) and get a registry
access exception. I know why this happening. The dll makes the request using
the following:
request = CType(WebRequest.Create(url), HttpWebRequest)
| |
by: Morten Snedker |
last post by:
I'm trying to download a file. I've tried both using webclient and the
httpWebRequest. Either way it returns a "407 proxy authentication
required".
The program is to be run externally, so basically I don't know the
users login-name, password or domain. So that makes setting the proxy
in code irrelevant, doesn't it?
When searching the web it appears to be a common problem. But I
haven't found my solution and still can't get it to...
|
by: Sharon |
last post by:
Hi all,
Can any one explain the relationship between real & transparent proxy?
I couldn't fully understand it from the explanation at MSDN.
Thanks,
Sharon.
|
by: Kevinyy |
last post by:
Is it possible to set up the default web proxy with password(no username) in the registry? if not, feed in proxy setting with password to FF/IE? - with a c# program?
|
by: hsn |
last post by:
hello everyone.
i am trying to enable or disable the proxy in my vista os.
i have the command right here.
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings /v ProxyEnable /t REG_DWORD /d 0 /f
/d 0 /f for enabling the auto proxy
/d 1 /f for disabling the auto proxy settings.
the reg key is fine and it is working the problem is when i enter this command the proxy is not set in the browser.
but the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| | |