de/activate NIC by system interface/API calls?

This is a discussion on de/activate NIC by system interface/API calls? within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm not sure if I am in the right forum here .... so if I am wrong here, please ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    1

    de/activate NIC by system interface/API calls?

    Hi,

    I'm not sure if I am in the right forum here .... so if I am wrong here, please point me to the right forum.

    Now my question:
    Is there a possibility to deactivate and activate a NIC with a (API) function or another Windows (XP) system interface/system call?

    I would like to create a small programm which has the same effect as right-clicking on the network connection and selecting "Activate" or "Deactivate".

    Thanks,
    joft

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    http://groups.google.com/groups?thre...280a%40phx.gbl

    http://groups.google.com/groups?thre...%40tkmsftngp05

    Possibly also SetIfEntry() but may be unreliable.

    Also, one can use SetupDi APIs (compilcated). Start with DICS_DISABLE, SP_PROPCHANGE_PARAMS, SetupDiSetClassInstallParams() and SetupDiChangeState().
    http://groups.google.com/groups?thre...ws.t-online.de

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. System calls
    By Mak in forum C Programming
    Replies: 1
    Last Post: 02-06-2003, 09:49 AM
  3. C system call and library call
    By Coconut in forum C Programming
    Replies: 6
    Last Post: 08-22-2002, 12:20 PM
  4. System Calls
    By Jperensky in forum C Programming
    Replies: 6
    Last Post: 03-12-2002, 02:41 PM
  5. System Calls && Variables
    By Okiesmokie in forum C++ Programming
    Replies: 6
    Last Post: 03-06-2002, 09:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21