advertisement

Find Code  Advanced Search   

browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Ping with VB the Easiest Way Using IPHLP.API

Author: Light_Templer
Category: Network/Internet
Type: Snippets
Difficulty: Intermediate

Version Compatibility:  Visual Basic 5   Visual Basic 6  

More information:

Adapted from a small article from Bill Nolde on CodeGuru. He used the GetRTTAndHopCount function in C to do a simple ping. Great idea, works fine. It takes an IP address as string, and returns Boolean if the address was reached.

From C to VB is only a small step, I thought. Two simple API calls wrapped in a small function are enough to check for a unit.

This code has been viewed 89192 times.

Instructions: Copy the declarations and code below and paste directly into your VB project.


Declarations:

Code:

No Text Boxes

Sponsored Links

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers