Sep 13th, 2000, 03:38 AM
Hi,
I'm looking for a way to enumerate a local PCs NIC, IP Address and Sub-Net Mask, for each given NIC installed in the machine.
For example, a laptop can have an IP Address assigned to a NIC in its docking-station as well as having one assigned to a PCMCIA card.
The problem is that the IP Addresses may not always be bound to the card at program run-time. Presumably, I need to be looking at various Registry entries (which ones?) or the NetAPI.
The end result is that data obtained will be inserted into a Word document (using Form-Fields).
Any suggestions greatfully received.
RM.
I'm looking for a way to enumerate a local PCs NIC, IP Address and Sub-Net Mask, for each given NIC installed in the machine.
For example, a laptop can have an IP Address assigned to a NIC in its docking-station as well as having one assigned to a PCMCIA card.
The problem is that the IP Addresses may not always be bound to the card at program run-time. Presumably, I need to be looking at various Registry entries (which ones?) or the NetAPI.
The end result is that data obtained will be inserted into a Word document (using Form-Fields).
Any suggestions greatfully received.
RM.