flyndis
驱动牛犊
驱动牛犊
  • 注册日期2001-12-20
  • 最后登录2002-08-23
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1214回复:2

请问怎样检查一个win系统中是否装了网卡

楼主#
更多 发布于:2002-02-19 21:05
请问各位大虾怎样检查一个win系统中是否装了网卡,并获得其MAC,有没有比较简便的方法,比如调一个NDIS的函数就搞定的?
用激情去创造,用热情去灌溉!
WindThruEars
驱动老牛
驱动老牛
  • 注册日期2002-11-17
  • 最后登录2004-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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.
我是假耳朵
ufo_online
驱动牛犊
驱动牛犊
  • 注册日期2002-04-26
  • 最后登录2004-03-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-07-12 09:48
DWORD GetAdaptersInfo(
  PIP_ADAPTER_INFO pAdapterInfo,    // buffer to receive data
  PULONG pOutBufLen                 // size of data returned
);

pAdapterInfo是一个链表,遍历这个链表,得到所有网卡的配置信息。
游客

返回顶部