05-12-2006 02:11 AM
05-12-2006 04:34 AM
The simplest way would be to run "ipconfig" in a DOS command and parse its output. Doing this over WinAPI with Call Library Nodes would be rather involved as you would first have to enumerate the adapters installed, decide then which adapter you are interersted in and then request its status.
@_avr_ wrote:Hello there,I´m looking for an easy way to detect if a network cable is plugged or unplugged (linkup or linkdown) Does anyone knows what register contains this information?!
05-12-2006 04:42 AM
Hi Rolf,
what library must I use to get the information?
Thanks for reply!
05-12-2006 04:50 AM
05-12-2006 04:56 AM
Rolf,
yes, ipconfig is well known, parsing that string too, but what happends if the the VI runs on an english or chinese OS!? Some keyword will change in the result string and.......
So, better solution would be to use a LIB, but I don´t know at present wich one is the correct one....
05-12-2006 05:24 AM
05-12-2006 09:53 AM
First you ask for an easy (simple) solution and then you complain about language differences
@_avr_ wrote:
Rolf,
yes, ipconfig is well known, parsing that string too, but what happends if the the VI runs on an english or chinese OS!? Some keyword will change in the result string and.......
So, better solution would be to use a LIB, but I don´t know at present wich one is the correct one....
05-12-2006 03:04 PM
Thank you Rolf!
Looks like I am going to learn something here.
Ben
01-23-2007 07:44 AM
Hello Rolf -
Thanks for posting your IPTools - they are going to be a great help to me. I wonder if you can help me take it one step further. I have a NIC that is connected to 4 IP addresses. Is there a Windows API to quickly sense if the connection to one or more of these individual connections has been dropped for any reason?
Thanks!
01-23-2007 11:40 AM
@red Sox Fanatic wrote:
Hello Rolf -
Thanks for posting your IPTools - they are going to be a great help to me. I wonder if you can help me take it one step further. I have a NIC that is connected to 4 IP addresses. Is there a Windows API to quickly sense if the connection to one or more of these individual connections has been dropped for any reason?
Thanks!
No I'm sorry.Rolf Kalbermatter