I reread and still get it as if he wants to check remote user:( Probably your interpretation is right.
Cetin
>I understand the requets that He wants to know if the USER computer where application is installed is connected to INet. Not to check if some particular user is connected to INet.
>
>>>>Hi all
>>>>
>>>>How can I just find out if the users computer is online or not. A simplest and shortest and fastest code, something that maybe run from a timer and won't overload the system.
>>>>
>>>>Please advise.
>>>
>>>Try this:
>>>
>>>#define FLAG_ICC_FORCE_CONNECTION 0x01
>>>
>>>DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
>>>myFastLoadedSite = "http://www.dir.bg"
>>>? InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)
>>>
>>
>>How would this check if a user is connected to internet? Where is user's address etc? For example can you check if I'm online with this if I you know my IP???
>>As far as I know this only checks if 'me' is connected or not, no?
>>Cetin