線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1025
推到 Plurk!
推到 Facebook!

how to get the infomation of the process running

尚未結案
akali
一般會員


發表:4
回覆:2
積分:1
註冊:2004-08-02

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-11-24 22:35:30 IP:222.76.xxx.xxx 未訂閱
i want to collect the info(like the phisical memeory,virtual memeory,cpu usage..) of all the process that are running ,how to? as a matter of fact , i wander whether some programs are leaking or not,so i want to to write a program to collect the infomation about the process(memeory,virtual memeory,page error,cpu usge...just like what the windows task console shows),and write to a log file in a fixed time,then i can get the date whithout watching the windows task console,but i don't know what/how to use WINDOWS api to do that anyone can help me? ps..i can't type BIG5.and when i use gb,it shows mask...sori for my poor english ~~learning delphi~~
------
~~learning delphi~~
allenchan
資深會員


發表:10
回覆:306
積分:283
註冊:2004-01-06

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-11-24 23:25:32 IP:61.62.xxx.xxx 未訂閱
假如你使用的是 Windows 95/98 可以查查關於 ToolHelp32 Win32 API。 假如你使用的是 NT/2000/XP .... 可以查關於 PSAPI Win32 API。 因為我不用 95/98 很久了,所以對 ToolHelp32 也不熟,至於 PSAPI 大致上可以查這幾個: EnumProcesses OpenProcess EnumProcessModules GetModuleFileNameEx QueryWorkingSet ........ 等等 以下這篇文章中有使用到其中幾個 API: http://delphi.ktop.com.tw/topic.php?TOPIC_ID=60210
系統時間:2024-05-15 2:48:48
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!