Click here to Skip to main content
15,886,085 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to block network on Pc(sytem) in c#.
Posted
Comments
Smithers-Jones 22-Dec-11 9:14am    
Not a question.

1 solution

You need to use WMI class Win32_NetworkAdapter
Win32_NetworkAdapter class[^]
you can use Disable[^] and Enable[^] function to enable and Disable Network.
 
Share this answer
 
Comments
thatraja 22-Dec-11 13:05pm    
5!
RaviRanjanKr 22-Dec-11 13:43pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900