Link to home
Create AccountLog in
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
ASKER CERTIFIED SOLUTION
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Member_2_99151
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.
Found it!
Bind and Unbind does the trick...
Thanks