Look into the INetCFG interface
http://msdn.microsoft.com/en-us/library/ff547694.aspx[
^]
if that doesn't do the trick i think your only other option is to try and change this setting from kernel mode. (through a driver)
Also i do not believe this is a good approach since the changes you are making will affect the entire system
not just your application.