Avatar of Member_2_99151
Member_2_99151
 asked on

How can I disable a network adapter programmatically?

Hi,

I have a device running Windows CE 5.0.
I need to be able to disable the Network Adapter from software.
I have the Compact Framework 2.0 available if there are any features there.
Does anyone have any idea how to do this? I have read around and there is mention of IP Helper, but I am not sure if this extends far enough to allow this capability.

Any help would really be appreciated.

Thanks,

James
Windows OSC#

Avatar of undefined
Last Comment
Member_2_99151

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
alexey_gusev

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Member_2_99151

ASKER
Thanks for the info.
I like the look of the OpenNetCF library and it appears to have "OperationalStatus" which is related to what I am after (Property of INetworkInterface).
Problem is that it is read only - do you know the function I need to call to affect this?
Thanks.
Member_2_99151

ASKER
Found it!
Bind and Unbind does the trick...
Thanks
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23