c-minus
December 2nd, 2007, 07:51 PM
Hi Folks,
I've written a test-app that runs under Windows XP and uses WS2_32.dll to send pings to multiple devices-under-test (aka: "DUTs".) Devices are tested in seperate threads - one thread may be pinging at 2Hz, another thread at 5Hz.
The app works fine as long as the user has admin privileges. For non-admins, pinging doesn't work. It _seems_ to be WS2_32 that's behaving differently, though I haven't trapped any errors during "setsockopt", "sendto"s, "select", "recvfrom", etc. Both admins and non-admins can ping DUTs from a DOS window.
Searches on WS2_32 and XP have turned-up some discussion about restrictions under SP2, but the app works for admins...
The app relys on socket-receive events - on a socket-receive event, WS2_32 relays a message to a [hidden] window which processes received pings for the test-app.
I realize this description is "sketchy" and it may not be a WS2_32 problem - but if the symptom sounds familier, your insight may help!
Thanks, Cheers!
I've written a test-app that runs under Windows XP and uses WS2_32.dll to send pings to multiple devices-under-test (aka: "DUTs".) Devices are tested in seperate threads - one thread may be pinging at 2Hz, another thread at 5Hz.
The app works fine as long as the user has admin privileges. For non-admins, pinging doesn't work. It _seems_ to be WS2_32 that's behaving differently, though I haven't trapped any errors during "setsockopt", "sendto"s, "select", "recvfrom", etc. Both admins and non-admins can ping DUTs from a DOS window.
Searches on WS2_32 and XP have turned-up some discussion about restrictions under SP2, but the app works for admins...
The app relys on socket-receive events - on a socket-receive event, WS2_32 relays a message to a [hidden] window which processes received pings for the test-app.
I realize this description is "sketchy" and it may not be a WS2_32 problem - but if the symptom sounds familier, your insight may help!
Thanks, Cheers!