Article View: borland.public.cppbuilder.nativeapi
Article #17408Re: GetProcessMemoryInfo-Working But....
From: Remy Lebeau (TeamB)
Date: Wed, 26 Mar 2003 21:14
Date: Wed, 26 Mar 2003 21:14
18 lines
1442 bytes
1442 bytes
GetProcessMemoryInfo() expects a process handle, but you are passing it a window handle instead. They are not the same thing. Use GetCurrentProcess() to retrieve the process handle. Gambit "CC" <Xcurtc@tmscorp.com> wrote in message news:3e82069d@newsgroups.borland.com... > I am trying to use > > GetProcessMemoryInfo > > The module I'm calling it from is a thread. > > I pass in Application->Handle to the api, > it returns error message "Invalid handle"
Technical Details
Message-ID:
<3e8215fc$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!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-mailReferences:
<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:57:32 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e82069d@newsgroups.borland.com> Subject: Re: GetProcessMemoryInfo-Working But.... Date: Wed, 26 Mar 2003 13:14:51 -0800 Lines: 20 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: 207.175.226.26 Message-ID: <3e8215fc$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048712700 207.175.226.26 (26 Mar 2003 13:05:00 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!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