🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetProcessMemoryInfo-Working But....

#17393
From: Terry
Date: Wed, 26 Mar 2003 22:50
19 lines
1566 bytes
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: <3e822e95@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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>

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-26 20:16:43 PST
Reply-To: "Terry" <terry@helloworld.com>
From: "Terry" <terry@helloworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e82069d@newsgroups.borland.com>
Subject: Re: GetProcessMemoryInfo-Working But....
Date: Wed, 26 Mar 2003 16:50:01 -0600
Lines: 21
Organization: here
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 66.142.146.69
Message-ID: <3e822e95@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048718997 66.142.146.69 (26 Mar 2003 14:49:57 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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