Article View: borland.public.cppbuilder.nativeapi
Article #3626Re: Memory used by a process
From: Remy Lebeau (TeamB)
Date: Tue, 23 May 2006 22:32
Date: Tue, 23 May 2006 22:32
17 lines
1375 bytes
1375 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:44738216$1@newsgroups.borland.com... > I have a Process ID of a running process with threads, how > can I tell how many threads are present Look at the CreateToolhelp32Snapshot() and Thread32First/Next() functions. Create a snapshot of the system, then you can enumerate the threads that belong to the ID you have. > and how much RAM is being used by the process Have a look at the Heap32First/Next() functions. Gambit
Technical Details
Message-ID:
<44738e6a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44738216$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,15c27f4befd3247b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44738216$1@newsgroups.borland.com> Subject: Re: Memory used by a process Date: Tue, 23 May 2006 15:32:27 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44738e6a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1148423786 68.69.17.41 (23 May 2006 15:36:26 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail