Click here to Skip to main content
15,940,271 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i need to perform a several tasks for the application I am doing.

I have googled and it is not very clear about.

Here are some of the tasks:

1. about clearing cookies not sure how to do it for default browser with c++ ( or a specific browser).

2. Changing IP with c++ (I do not know if it is simple but i googled and found a few functions like: DeleteIpAddress, AddIpAddress.

And would want randomly choose the country and city - IP address(s). I have used myself program like Hide My IP, and others, but

want to do it in my program.

3. go to the specific web link, i know i can do for example :

ShellExecute(NULL, L"open", L"www.google.com",NULL, NULL, SW_HIDE); // would want to have an option not actually to open a web browser, is SW_HIDE does just that? And also want to close that specific web link which was open, can i use

ShellExecute(NULL, L"close", L"www.google.com",NULL, NULL, SW_HIDE); // or is the a better way? I do not want to end the process of a web browser only close the tab which was previously opened within a time frame.

So, any comments and suggestions, code examples...

thanks in advance...
Posted
Comments
BacchusBeale 14-May-15 23:09pm    
For part 3, controlling a browser externally would be difficult since for example Chrome has multiple processes with the same name. I suggest you look up browser extensions and add-on APIs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900