Hi,
I am calling GetAdaptersAddresses to get a PIP_ADAPTER_ADDRESSES structure in which I would loop through that list and check the status of the adapter, if the adapter is 'up' I would like to be able to disable it.
ie. (very rough example)
PIP_ADAPTER_ADDRESSES p;
GetAdaptersAddresses(AF_INET, dwFlags, NULL, p, &dwSize);
if ( p->OperStatus == IfOperStatusUp )
{
//put code here to disable device
}

from the PIP_ADAPTER_ADDRESSES structure I can use the p->AdapterName which is the interface guid for the network device however I cant seem to find a way to hook this guid or any info in the PIP_ADAPTER_ADDRESSES structure to disable that device.