Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2005

Tip: Looking for answers? Try searching our database.

Equivalent of NtQuerySystemInformation for .Net?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Enzo - 07 Jan 2005 18:43 GMT
What I need to be able to detect is when the CPU or CPUs of a system are idle
or no more than 10% busy.  Back in my C++ days we used
NtQuerySystemInformation.  Is there an easier way built into the .Net
Platform or C#?
John Puopolo - 08 Jan 2005 16:05 GMT
Hi.

Not sure if the .NET platform has exactly what's needed; however, since you
are familiar with that function, you could certainly use P/Invoke (Interop)
to call it.

John

> What I need to be able to detect is when the CPU or CPUs of a system are idle
> or no more than 10% busy.  Back in my C++ days we used
> NtQuerySystemInformation.  Is there an easier way built into the .Net
> Platform or C#?
Enzo - 10 Jan 2005 03:41 GMT
P/Invoke would require special security permissions.

I am working with Performance Counters at the moment but I need a way to
handle multiple CPUs

> Hi.
>
[quoted text clipped - 9 lines]
> > NtQuerySystemInformation.  Is there an easier way built into the .Net
> > Platform or C#?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.