不知道您的用程序添加tcp/ip是何意思?
难道您想代替Windows来加协议?

解决方案 »

  1.   

    建议你找一些TCP/IP的书看看后再写。
      

  2.   

    是啊!
    就是不打开控制面班,而用程序实现添加tcp/ip协议等上网必须要改动的地方!
    我也见过一些什么一键通上网的软件不过不知道他们是怎么做的!
    请大家帮帮忙!
      

  3.   

    command: Win9x:  rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl 
    result:  displays Networks properties, Configuration tab 
          
    command: WinNT:  rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl 
    result:  displays Networks properties, Identification tab 
             
    command: WinNT:  rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,1 
    result:  displays Networks properties, Services tab 
          
    command: WinNT:  rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,2 
    result:  displays Networks properties, Protocols tab 
          
    command: WinNT:  rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,3 
    result:  displays Networks properties, Adapters tab 
             
    command: WinNT:  rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,4 
    result:  displays Networks properties, Bindings tab 
    -------------------------------------------------------
    用Shell函数即可.不知道您是不是要求这样?