Best way to programmatically configure network adapters in .NET

后端 未结 5 619
梦毁少年i
梦毁少年i 2020-12-01 11:18

I have an application written in C# that needs to be able to configure the network adapters in Windows. I have this basically working through WMI, but there are a couple of

5条回答
  •  攒了一身酷
    2020-12-01 11:25

    I can tell you the way the trojans do it, after having to clean up after a few of them, is to set registry keys under HKEY_LOCAL_MACHINE. The main ones they set are the DNS ones and that approach definitely sticks which can be atested to by anyone who has ever been infected and can no longer get to windowsupdate.com, mcafee.com etc.

提交回复
热议问题