🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CPU, Disks information

#15492
From: Ed Mulroy [TeamB]
Date: Tue, 01 Jul 2003 23:33
27 lines
2094 bytes
When looking for how to find things out under Windows, it is a good idea to
start by looking in the Windows help file, win32.hlp. The following are from
that help.

Number of disks:  GetLogicalDrives  or  GetLogicalDriveStrings
Free space: GetDiskFreeSpaceEx
Volume name, serial number, system operation flags, etc:
GetVolumeInformation
Listing some devices: QueryDosDevice

Other items can be found using I/O Control.  For instance an array of
DISK_GEOMETRY structures are returned by a call to DeviceIoControl with a
calling argument of IOCTL_DISK_GET_DRIVE_GEOMETRY

Getting the CPU type and speed are not trivial tasks and are beyond what I
am prepared to put in this message. You might try a web search,
http://www.google.com and might also try looking on the MS Developer's
Network site: http://msdn.microsoft.com/library/default.asp

.  Ed

> Jo�o Pereira wrote in message
> news:3f01b8d3$1@newsgroups.borland.com...
>
> How is it possible to know the CPU information, like Speed,
> usage... and disk info like free space, number of disks and
> partitions.
Technical Details
Message-ID: <3f021a4e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f01b8d3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,fcd7ce76e491dc06
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-01 16:34:31 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f01b8d3$1@newsgroups.borland.com>
Subject: Re: CPU, Disks information 
Date: Tue, 1 Jul 2003 19:33:13 -0400
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 206.228.162.79
Message-ID: <3f021a4e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057102414 206.228.162.79 (1 Jul 2003 16:33:34 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail