Re: api functions for...

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi !
"daniel w." <_ydaw@xxxxxx> wrote in message
news:42ad9d59$0$14910$91cee783@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I'm searching for api functions to:
>
> -> get all processes which are connected to a peer over network
> (modem, lan).

If you mean which process open some socket look at
AllocateAndGet(Tcp/Udp)ExTable­FromStack() in netstatp source
on http://www.sysinternals.com/nt­w2k/source/tcpview.shtml

( be aware that them still undocumented and exist in XP only )

> -> get the cpu load of each process + memory usage.

Look at perfmon examples
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpperfmon.asp

> -> Functions to get the network load to create a statistic.

GetTcpStatistics() and siblings from IPHLPAPI

HTH
Arkady

>
> Thanks for each hint.
>
> I'm using win2k and vc++ 6.0.
>
>
> greetings,
> daniel
>
>
>
> --
> if you wanna send me a email remove the leading '_y' from my email addr.
>
> In the beginning was the word
> and the word was content-type: plain/text


.