Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Indy ping require UAC elevation?

Tags:

ping

delphi

indy

Does the Indy ICMP component require Administrator privileges to ping?

If I run with UAC turned on but without elevated privileges I get an "Access Denied" error message.
Looking at this question it sounds like Indy ICMP uses RAW sockets and thus needs elevated privileges?

I'm developing using Delphi 2007 & Indy 10.x and testing under Windows 7 Pro.

like image 591
SteB Avatar asked Nov 28 '12 18:11

SteB


1 Answers

My colleague found this Article states that the Indy ICMP component uses RAW Windows sockets, which under Vista or later requires elevated privileges to run under UAC.

I adapted the program to request UAC elevation and it's now pinging okay.

The alternative would be to call the ICMPSendEcho() and it's related functions directly.

like image 147
SteB Avatar answered Nov 15 '22 04:11

SteB