View Full Version : To get disk info in windows 2000 (W2K)
sampl
09-11-2006, 07:42 AM
Hi all,
In Windows NT, the disk information can be found in HKEY_LOCAL_MACHINE\SYSTEM\DISK. But, this registry subkey is not present in Windows 2000 professional.
I found some info in google that HKEY_LOCAL_MACHINE\SYSTEM\DISK can be populated in Windows 2000 by running windisk.exe. But, this subkey was not populated even after runnning windisk.exe.
I would like to know the following:
1. HKEY_LOCAL_MACHINE\SYSTEM\DISK does not exist in Windows 2000 professional?
2. What is the substitute for HKEY_LOCAL_MACHINE\SYSTEM\DISK in Windows 2000?
3. Is there any other registry subkey that can provide me with the disk information in Windows 2000?
Please reply as soon as possible.
Thanks in advance.
BertImmenschuh
09-11-2006, 11:53 AM
That entry does not exist on my WinXP Pro, either.
The file you mentioned does not exist on my Win2000 Pro, is it a downloadable file from other than Microsoft?
<font color=blue>Good judgement comes from experience, and experience comes from bad judgement.</font color=blue>
<font color=green>Experience is a wonderful thing. It enables you to recognize a mistake when you make it again.</font color=green>
sampl
09-11-2006, 11:35 PM
Thanks for the response. Yes, the entry does not exist in Win XP.
windisk.exe is downloadable.
BertImmenschuh
09-12-2006, 05:45 AM
Since it is not a built-in thing with Win2000 Pro and WinXP, mind sharing the download link so maybe someone can try it and see if the issue can be duplicated?
<font color=blue>Good judgement comes from experience, and experience comes from bad judgement.</font color=blue>
<font color=green>Experience is a wonderful thing. It enables you to recognize a mistake when you make it again.</font color=green>
monkey_1
09-12-2006, 07:26 AM
What kind of info do you need? Does the key
<pre>[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices]</pre> can be useful?
_______
<font color=orange>Mono</font color=orange>
sampl
09-12-2006, 08:27 AM
Thanks for you reply BertImmenschuh & monkey_1
BertImmenschuh:
To download windisk.exe
http://www.freedomscientific.com/fs_downloads/wdbeta1lgcy.asp
BertImmenschuh & monkey_1:
I got the solutions for some of my questions:
HKEY_LOCAL_MACHINE\SYSTEM\DISK was present in Windows NT. Windows 2000 eliminates this subkey and stores similar information in the MountedDevices subkey. So,
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices has the disk information.
By disk information I am concerned about the disk size.
The problem is, in Windows NT HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information entry contained the disk Information. I am not able to find out which entry in HKEY_LOCAL_MACHINE\SYSTEM\MOUNTEDDEVICES\ contains disk information or how get disk information out of this subkey.
Is there any way to find out what are the available entries for any subkey?
And is there any way to find out the structure of the entry for example to find out the structure of
HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information entry. I need to use this in my code.
Thanks in advance
sampl
09-12-2006, 08:42 AM
Is there any API that gives me the disk size by taking the drive letter as the input ? (in windows 2000)
For example:
If a disk of 120GB contains C: (40 GB), D: (20GB) and remaining raw.
If the input is C: then GetDiskFreeSpaceEx() gives the partition size i.e, it gives the total size and free size in C:
I want an API that takes the input C: and gives the entire disk size (120GB)
Any help would be very much appreciated.
BertImmenschuh
09-12-2006, 08:50 AM
I want an API that takes the input C: and gives the entire disk size (120GB)
The only place I've come across the information about an HDD with 1 or more partitions plus having unallocated space has been in Computer Management, Storage section and the Disk Management item. Or in other words, many places in Windows won't know about unpartitioned space.
%windir%\System32\compmgmt.msc
C:\WINDOWS\system32\diskmgmt.msc
<font color=blue>Good judgement comes from experience, and experience comes from bad judgement.</font color=blue>
<font color=green>Experience is a wonderful thing. It enables you to recognize a mistake when you make it again.</font color=green>
sampl
09-12-2006, 08:58 AM
Thanks for the super fast reply..
Is there any Windows API? coz I would have to use that in my code.
BertImmenschuh
09-12-2006, 10:58 AM
Your link took me to a site that seems not to be about what you are asking:
<a target="_blank" href=http://www.freedomscientific.com/fs_downloads/wdbeta1lgcy.asp>http://www.freedomscientific.com/fs_downloads/wdbeta1lgcy.asp</a>
"WinDisk 1.1 Public Beta for Braille'n Speak (2000 & 640), Braille Lite (2000 & 18) and Type'n Speak Notetakers
Thank you for choosing to test the WinDisk 1.1 Public Beta software. Please remember that this version of WinDisk is Beta software, and therefore some features may not be fully implemented at this time.
As a chosen user of this Beta product, your experience is important to us. We ask that you please give us your feedback by joining our distribution list by emailing your contact information to FS-WinDisk-Beta@yahoogroups.com. This will add you to a discussion forum to ask questions and share feedback with Freedom Scientific associates and other WinDisk users.
Technical Requirements
WinDisk is compatible with the Braille 'n Speak 2000, Braille 'n Speak 640, Braille Lite 18, Braille Lite 2000, Braille Lite 40 or Type 'n Speak.
Your notetaker must be running the 9/20/00 or later notetaker firmware version to use this WinDisk Beta."
<font color=blue>Good judgement comes from experience, and experience comes from bad judgement.</font color=blue>
<font color=green>Experience is a wonderful thing. It enables you to recognize a mistake when you make it again.</font color=green>
sampl
09-12-2006, 10:59 PM
I am not able to find the link I downloaded from..
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.