Solved

Ping

Posted on 2004-08-25
3
214 Views
Last Modified: 2010-04-01
Hi, I want to know how I could code in "ping" support into my program without using the dos-ping...

The problem is that you need to use raw sockets, which are not supported if you are not logged on as an administrator... On the other hand, I don't want to use the external ping-thingie because what if the program has been deleted for some reason?

Can someone give me an answer on this?


Thanks
0
Comment
Question by:G00fy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
scn earned 100 total points
ID: 11901017
Look for IcmpSendEcho, IcmpCreateFile in the MSDN. It works even if the user is not administrator.
0
 

Author Comment

by:G00fy
ID: 11901033
Mmmm, that would be half of my problem/solution...

------------------------------------------
Requirements
Client: Requires Windows XP or Windows 2000 Professional.
------------------------------------------


I have now code to ping as administrator using raw sockets... Can i use it on win98 without a problem and then on windows 2k/XP with the functions you proposed?
0
 
LVL 3

Expert Comment

by:scn
ID: 11901556
These functions are part of the icmp.dll library, which also exists on Windows 98
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C++ Language error 28 308
gdb doesn't stop on breakpoint 2 134
HTTPSendRequest with WinINet delays on first call 11 116
Autosar OS Multicore Share Resources confusion ? 2 189
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question