🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17273

Re: GetProcessMemoryInfo-Working But....

#17273
From: CC
Date: Thu, 27 Mar 2003 14:32
28 lines
1745 bytes
Thank you terry !
This help a BUNCH! Now - if I can figure out why my program is eating
memory!!!! Arg -
Thanks again,
Curt
"Terry" <terry@helloworld.com> wrote in message
news:3e822e95@newsgroups.borland.com...
> Are you trying to do something like this:
>
>
>        PROCESS_MEMORY_COUNTERS pmc;
>        HANDLE hProcess;
>
>        hProcess = OpenProcess(PROCESS_QUERY_INFORMATION |
>                                PROCESS_VM_READ, FALSE, ProcessID);
>         if(hProcess != NULL)
>         {
>             if(GetProcessMemoryInfo(hProcess, &pmc, sizeof(pmc)))
>             {
>
> Item->SubItems->Add(FloatToStrF(StrToFloat(pmc.WorkingSetSize/1024),
>                                     ffNumber, 15, 0) + " K");
>             }
>
>             CloseHandle(hProcess);
>         }
>
>
Technical Details
Message-ID: <3e830b57$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e82069d@newsgroups.borland.com> <3e822e95@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2d8d3ce026f4e63b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-27 06:40:01 PST
From: "CC" <Xcurtc@tmscorp.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e82069d@newsgroups.borland.com> <3e822e95@newsgroups.borland.com>
Subject: Re: GetProcessMemoryInfo-Working But....
Date: Thu, 27 Mar 2003 08:32:32 -0600
Lines: 30
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 208.254.250.201
Message-ID: <3e830b57$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048775511 208.254.250.201 (27 Mar 2003 06:31:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail