选择1个NIC卡的信息. [英] Selecting information for 1 NIC card.

查看:78
本文介绍了选择1个NIC卡的信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我放弃!!!

我正在尝试从NIC卡获取tcp/ip信息和物理信息.我同时查询了这两个查询(来自win_32 NetworkAdapter和win32_NetworkAdapterConfiguration),但我想将它们合并在一起,以便可以从ComboBox中选择特定的网卡并获取两组信息.

有人告诉我可以使用win_32 NetworkAdapterSetting,但是我对这些东西还很陌生,所以我不知道怎么做!

它必须在c#中.

非常感谢(我已经在这里呆了12个小时!!)

Hey Guys, I give up!!!

I''m trying to get tcp/ip info and physical info from a NIC card. I have queries for both (from win_32 NetworkAdapter and win32_NetworkAdapterConfiguration) But I want to join them together so I can select a specific network card from a ComboBox and get both sets of info.

I have been told I can use win_32 NetworkAdapterSetting but I''m pretty new to this stuff so I don''t know how!!

It must be in c#.

Many Thanks (Ive been at this for 12 hrs!!!)

推荐答案

您阅读过代码项目文章吗?

如何:(几乎)通过C#在WMI中进行所有操作-第3部分:硬件 [
Have you read the code project article;

How To: (Almost) Everything In WMI via C# - Part 3: Hardware[^]

You could use the code from that to do all that you want (i think).


这篇关于选择1个NIC卡的信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆