It can be recorded from the command system(*); in some file with use Win32. For example, the command system(netstat)? Or some other command?
A Recommendation: DON'T USE system();
There are many discussions and articles why not to use it.
biggest reason is because it's not multi platform.
Google: C++ why not to use system()
But system() is, in itself, multi-platform. It is part of C standard library.
I've found what I needed. Thanks. :)