How can I enable/disable network connection options programmatically

Posted by nikie on Stack Overflow See other posts from Stack Overflow or by nikie
Published on 2010-04-22T08:43:30Z Indexed on 2010/04/24 10:13 UTC
Read the original article Hit count: 258

Filed under:
|

When I open the properties on a network connnection on windows, I see this dialog: Connection_Properties

In this dialog, in the check-listbox I can enable or disable options like "File or printer sharing", "client for microsoft networks" or network filter drivers.

My question is: How can I enable/disable these options programatically? I didn't find anything that looks like this in the WMI documentation and I couldn't find any other Win32 API for this. I would prefer a C Win32 API or WMI interface, but a solution using any programming language is welcome. The question is language-agnostic.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about networking