|
-
July 13th, 2010, 01:45 PM
#1
disable a device in PIP_ADAPTER_ADDRESSES
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.
-
July 14th, 2010, 02:02 AM
#2
Re: disable a device in PIP_ADAPTER_ADDRESSES
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|