Article View: borland.public.cppbuilder.nativeapi
Article #16911Re: Getting CPU and Ram Usage
From: Serguei
Date: Sun, 20 Apr 2003 17:12
Date: Sun, 20 Apr 2003 17:12
24 lines
1496 bytes
1496 bytes
You may use WMI clas Win32_Process. It has number of properties that return what you need: KernelModeTime, UserModeTime, VirtualSize, PageFileUsage etc. There is a component for Delphi/C++Builder that is a wrapper around Win32_Process: http://www.online-admin.com/wmiset.html#TWmiProcessControl It has an example project in C++Builder. Hope this helps, Serguei "Seabass" <sbsoftea@yahoo.com> wrote: >hey everyone, >i hope this is a simple question: >is there a winapi function, that will let me get the CPU and Ram usage of my >application? >thanx alot > >Seabass > >
Technical Details
Message-ID:
<3ea2d507$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea27e73@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,470e8bf398a07abb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-20 10:22:55 PST From: "Serguei" <serguei_khramtchenko@hotmail.com> Sender: "Serguei" <serguei_khramtchenko@hotmail.com> Reply-To: "Serguei" <serguei_khramtchenko@hotmail.com> Subject: Re: Getting CPU and Ram Usage Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 155.94.54.251 155.94.54.251 References: <3ea27e73@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ea2d507$1@newsgroups.borland.com> Date: 20 Apr 2003 10:12:39 -0700 X-Trace: newsgroups.borland.com 1050858759 207.105.83.65 (20 Apr 2003 10:12:39 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail