IdIcmpClient funktioniert nicht unter normalem Benutzer
-
Hi,
wenn ich die IdIcmpClient Komponente von Indy unter B2007 verwende und einen Ping absetze, bekomme ich bei "normalem" Benutzer die Fehlermeldung 10013: Access denied. Das gleiche Programm unter Administrator funktioniert einwandfrei. Kann ich da programm mäßig Rechte vergeben, das IdIcmpClient auch unter normalem Benutzer funktioniert.
Aus der CMD(DOS)-Box funktioniert der Ping jedenfalls auch mit normalem Benutzer. Ich hab das getestet unter XP und Vista, läuft bei beiden nur mit administrativen Rechten.
Hat da jemand einen Tip für mich ?
-
Besser spät als nie ... aus der Hilfe zum BCB2010:
For Windows NT and Windows 2000, administrator privileges are required to allow TIdICMPClient.Ping to work properly. The command line PING application does not exhibit this behavior because Microsoft chose to use undocumented calls in ICMP.DLL and its winsock implementation to get around the issue. In short: they cheated. Indy does not use ICMP.DLL to maintain Linux compatibility, and allow use of both Raw sockets and ICMP sockets.