1

I am doing a project on a centralized LAN management system. I need to know how many CPU cycles is each process of a remote PC consuming(as in a Task Manager )so that the network admin can close few processes,in case the CPU utilization of a system in network goes beyond acceptable rates..

I would like to know if there is a Win32 API for this requirement of mine n if so ,i request you to give me information about it..

thank you in advance..

4

2 回答 2

1

Win32 API 有很多函数可以查找有关当前正在运行的进程和线程的各种信息,这里是它们的完整列表的链接:http: //msdn.microsoft.com/en-us/library/ms683223 (VS.85 ).aspx

浏览该列表,您应该能够在那里找到满足您要求的函数,例如 GetProcessTimes() 返回包含进程在内核模式、用户模式等中执行的时间量的结构。

于 2009-05-14T03:55:05.700 回答
0

您需要查看性能监控系统。您可以从那里获取统计信息(在 Process 计数器中)。

这是对它的(delphi)解释,非常好且易于理解。

当您了解它的工作原理后,您就需要Performance Counters API 来读取数据计数器。

于 2009-05-05T15:29:03.467 回答