Disable Network Card

  • Thread starter Thread starter John
  • Start date Start date
J

John

Is there anything in the win32 api that allows me to determine if a network
interface is disabled?

Thanks,
John
 
John said:
Is there anything in the win32 api that allows me to determine if a network
interface is disabled?

Thanks,
John

You could do it with netsh.exe. The first output shows the status while
the network card is enabled, the second when it is disabled.

netsh interface show interface

Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Connected Loopback Loopback
Enabled Connected Internal Internal
Enabled Connected Dedicated Local Area Connection

Admin State State Type Interface Name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top