I need a simple C++ program, it will change dns servers for all network devices.
Registry key of dns server is:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\--device--\Nameserver]
"NameServer"="8.8.8.8 8.8.4.4"
Dns servers are: 8.8.8.8 - 8.8.4.4
Single computer may use more than one device. Please apply this changes to all devices listing after \interfaces\ directory.
---
Events:
--> First event is checking [login to view URL] if connection is successful or not. We will change dns server only if pc can't access to Youtube.
Because, this program will published to Youtube-banned countries.
Display the screen #1 while checking youtube connection.
Youtube connection checking events:
- try to connect [login to view URL] on 80 port.
- find in html code "[login to view URL]". because youtube-banned countries will display a html code already, means of that is every connection will be successful. we must find a code what will displaying only on youtube.com.
- if you see "[login to view URL]", connection is successful. if you don't see, isn't successful.
--> if connection is successful, display screen #2 (look at attached file).
? ? Don't change dns server.
--> if connection isn't successful, display screen #3.
? ? Ask to user if he want to change dns servers or not.
--> if user clicks to yes, change dns servers and display screen #4.
? ? Ask to user if he want to reboot or not.
--> if user clicks to no, display screen #5.
Please note that, checking [login to view URL] connection must take 5 seconds at least. reason of this is, user must understand what happening. if it will not take 5 seconds, this screen will be displayed about 0.5 sec. only.
Program title: Youtube Unban
I need to recompile it with VS2008. Please send the sources compliatable with Visual Studio 2008.
I attached everyting that you need.
Thank you very much.
## Deliverables
I attached the screens.