I'm trying to write a C programm to change some Network-properties, but didn't find out how exactly to do this.

With the mouse I would just go to the properties of a connection(in control-panel->networks). There I want to uncheck some components and deactivating "netbios over TCP/IP" (in the advanced properties of TCP/IP).

But I couldn't figure out, how to do it in my program.
Could someone please give me a pointer to the right API-call?
(I also tried to change those values directly in the registry, but as far as i see, it is saved in a huge binary key. )

Any ideas welcome.
- michas