Reputation: 754
i'm looking for a way to enable or disable dhcp on a network interface via win32 api. actually i solve this by using wmi but i would like to do this via win32 api because i would like to workaround corrupted wmi's.
i found a thread where they do this via registry api: On enabling Network adpater, Autoconfiguration IP address getting set but is this the only way to achieve?
cheers, ceth
Upvotes: 2
Views: 2297
Reputation: 754
i finally did it with wmi and shelling out netsh.exe as a backup if wmi is not working. the way over the win32 api is quite too unhandy..
Upvotes: 1