I have such problem: i want to write a simple program in C++ running under Windows XP that will in some situations turn off internet connection (just like we can do by clicking "disconnect" button) and in some situations will turn it on. Is this possible to do under XP? Can i use the command line for this? Is there some windows command to do that or i need to use some WinApi function to achive my goal or is there any other way?

Regards,
Marcin Wronsky