Article View: borland.public.cppbuilder.nativeapi
Article #2717Re: Getting a thread's state and CPU utilization
From: Mike Collins
Date: Mon, 15 Jan 2007 10:43
Date: Mon, 15 Jan 2007 10:43
18 lines
1453 bytes
1453 bytes
Sorry for the late posting - looks like you've already hit the nail on the head though. NtQuerySystemInformation() is exactly what you want to use. I've got a semi-working example if you need any information on using the native api's. Also, if you trying to debug - consider having a look at ProcExplorer from sysinternals - gives you pretty much everything you need to know anout the state of everything on your system HTH Mike C "Dennis Jones" <nospam@nospam.com> wrote in message news:45a9e77e$1@newsgroups.borland.com... > Hello, >
Technical Details
Message-ID:
<45ab5ad6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45a9e77e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2c2b36b510895e0f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45a9e77e$1@newsgroups.borland.com> Subject: Re: Getting a thread's state and CPU utilization Date: Mon, 15 Jan 2007 10:43:53 -0000 Lines: 20 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2826 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 84.13.143.92 Message-ID: <45ab5ad6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1168857814 84.13.143.92 (15 Jan 2007 02:43:34 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail