Networking API
-
Is there an API which will tell me when a machine enters/leaves the network (at startup/shutdown)? If not, can anybody point me in the right direction on how to detect these events? :confused:
-
give more information. which computer (remote or used)? when will u meen detect this events etc. look "Service Functions" maybe get some idea
By "detect these events" I mean detect when a machine enters/leaves the network. If a machine is equiped with a network adapter, a startup of the meachine will normally mean that the machine tries to connect. I want to capture this. If a mahine is shut down or powered off it will leave the network. I want to capture that. I hope this clarifies my question. So, to repeat, what API should I use to capture these events (real-time)? Thank U in advance!
-
Is there an API which will tell me when a machine enters/leaves the network (at startup/shutdown)? If not, can anybody point me in the right direction on how to detect these events? :confused:
Can it help you ? CAsyncSocket::IsAborted Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
-
Can it help you ? CAsyncSocket::IsAborted Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
I don't know. I just searched through my MSDN Library and could not find any documentation. Where did you find it? I assume this call is supposed to handle a machine being shut down (leaving the network). What about a new machine connecting to the network? Thank U in advance!
-
By "detect these events" I mean detect when a machine enters/leaves the network. If a machine is equiped with a network adapter, a startup of the meachine will normally mean that the machine tries to connect. I want to capture this. If a mahine is shut down or powered off it will leave the network. I want to capture that. I hope this clarifies my question. So, to repeat, what API should I use to capture these events (real-time)? Thank U in advance!
If you think of "connected to the network" as beeing physically connected to the network, ther are no APIs that could give you this information. This is heavily protocol and client configuration dependend. However, if you mean that the machine establishes a session e.g. to the domain controller, you should take a look at the NetXXX Apis, especially NetSessionEnum() could be of help. However, you have to poll it, there is no ready-to-use notification mechanism available. -- Daniel Lohmann http://www.losoft.de (Hey, this page is worth looking! You can find some free and handy NT tools there :-D )
-
If you think of "connected to the network" as beeing physically connected to the network, ther are no APIs that could give you this information. This is heavily protocol and client configuration dependend. However, if you mean that the machine establishes a session e.g. to the domain controller, you should take a look at the NetXXX Apis, especially NetSessionEnum() could be of help. However, you have to poll it, there is no ready-to-use notification mechanism available. -- Daniel Lohmann http://www.losoft.de (Hey, this page is worth looking! You can find some free and handy NT tools there :-D )