阅读:1265回复:2
请问怎样检查一个win系统中是否装了网卡
请问各位大虾怎样检查一个win系统中是否装了网卡,并获得其MAC,有没有比较简便的方法,比如调一个NDIS的函数就搞定的?
|
|
|
沙发#
发布于:2002-02-20 01:33
It should be possible to check if any NIC installed by enumerate the pci bus (I suppose no ISA card now) with the classcode of network card. You can know which slot/function the NIC installed.
As to how to get MAC, I don\'t think that\'s easy, normally you should know the device object to send command to get the MAC. |
|
|
板凳#
发布于:2002-07-12 09:48
DWORD GetAdaptersInfo(
PIP_ADAPTER_INFO pAdapterInfo, // buffer to receive data PULONG pOutBufLen // size of data returned ); pAdapterInfo是一个链表,遍历这个链表,得到所有网卡的配置信息。 |
|