发信人: wenbobo(灌了拂衣去) 
整理人: wenbobo(2002-12-24 09:29:03), 站内信件
 | 
 
 
最快的办法:注册表,在9x和nt/2k/xp下不同。
 
 以nt系列为例,在services下寻找这类的东西:
 Windows Registry Editor Version 5.00
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\2]
 "ServiceName"="{F2C77746-6E1A-44E5-A66D-F5B1A5384FCA}"
 "Description"="Realtek RTL8139 Family PCI Fast Ethernet NIC"
 
 
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\{F2C77746-6E1A-44E5-A66D-F5B1A5384FCA}\Parameters\Tcpip]
 "EnableDHCP"=dword:00000000
 "IPAddress"=hex(7):31,00,30,00,2e,00,33,00,38,00,2e,00,30,00,2e,00,31,00,31,00,\
   30,00,00,00,00,00
 ;注意这个,意思就是"SubnetMask"=(REG_MULTI_SZ)255.255.192.0
 "SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,31,00,39,\
   00,32,00,2e,00,30,00,00,00,00,00
 "DefaultGateway"=hex(7):31,00,30,00,2e,00,33,00,38,00,2e,00,30,00,2e,00,31,00,\
   30,00,32,00,00,00,00,00
 "DhcpIPAddress"="0.0.0.0"
 "DhcpSubnetMask"="255.0.0.0"
 "DhcpServer"="255.255.255.255"
 "Lease"=dword:00000e10
 "LeaseObtainedTime"=dword:3d117e5b
 "T1"=dword:3d118563
 "T2"=dword:3d118aa9
 "LeaseTerminatesTime"=dword:3d118c6b
 
 
 
  ---- 掬水月在手
 弄花香满身
 
 
             
  | 
 
 
 |