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
 
Back
Top