How to Ping and Get Results

  • Thread starter Thread starter JC
  • Start date Start date
J

JC

Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc
 
Only problem with this method is that it requires Admin level to work (I
think.) So you can't assume Admin on every machine app runs at - that may
not be an issue for you. Another method that works is ICMP win32 api in
ICMP.dll. Doco says may not be supported in future, but has been there in
each os so far. HTH
 
What in the code requires admin level?

Pete

William Stacey said:
Only problem with this method is that it requires Admin level to work (I
think.) So you can't assume Admin on every machine app runs at - that may
not be an issue for you. Another method that works is ICMP win32 api in
ICMP.dll. Doco says may not be supported in future, but has been there in
each os so far. HTH
 
Oh, no kidding. I didn't realize you had to be admin to do that.

That kind of sucks. I mean, using the ICMP protocol from unmanaged code
shouldn't require admin priviledges, I don't think. I hope this will be
"fixed" in Whidbey.

Pete
 
Whidbey has a NetworkInformation namespace (I think), that has many tools for
investigating network adapters, perfroming pings, etc... The new classes/tools
may
still require sufficiently high privs in order to be used.
 
Back
Top