win32 C api call for disabling a network adapter?

前端 未结 1 912
我寻月下人不归
我寻月下人不归 2021-01-14 19:47

Ive been all over looking for a way to disable the network adapter through M$ IP Helper routines.

For the majority of the code I\'ve been using this api: http://msdn

相关标签:
1条回答
  • 2021-01-14 20:26

    I don't know if there is a simple API to disable it. I think you might have to go through the device manager API. SetupDiSetDeviceRegistryProperty + SPDRP_CONFIGFLAGS + CONFIGFLAG_DISABLED looks promising.

    There are also some suggestions here.

    0 讨论(0)
提交回复
热议问题