Network Adapter

  • Thread starter Thread starter MDB
  • Start date Start date
M

MDB

Hello All,

Is there a way to programmatically change the "My network card connects to:"
setting in the configure network adapters settings? I need to change this
to "The Internet" and really need to be able to do it though code if
possible.
 
It's probably in the registry. You could always export the registry with
Remote Registry Editor before and after making the change manually and
compare them. You probably have to broadcast a message to tell everyone
that the setting has changed, but maybe not...

Paul T.
 
There might be APIs availble via your network driver. Might I
suggest if this is a product you are responsible for. Do all the grunt
work to figure out how make the network work function the way you
want. Put everything into a class (maybe a static one) and create
your own API interface. Personally I have done this for 2 different
network cards on the CF. Creating a NetworkController with an
interface for your main application keeps your code clean AND allows
you to reuse the network code for the next project.


That's what I figured, just wanted to see if there was an api.

Thanks
--
Norman Rericha
Senior Software Engineer
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
 
Thanks I will keep that in mind.

Rayogen said:
There might be APIs availble via your network driver. Might I
suggest if this is a product you are responsible for. Do all the grunt
work to figure out how make the network work function the way you
want. Put everything into a class (maybe a static one) and create
your own API interface. Personally I have done this for 2 different
network cards on the CF. Creating a NetworkController with an
interface for your main application keeps your code clean AND allows
you to reuse the network code for the next project.



--
Norman Rericha
Senior Software Engineer
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
 
Back
Top