Click here to Skip to main content
16,007,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: prompt edit box Pin
valikac12-Nov-03 5:54
valikac12-Nov-03 5:54 
GeneralRe: prompt edit box Pin
niklo12-Nov-03 5:57
niklo12-Nov-03 5:57 
GeneralIDE Problem? VS 2002 .Net Pin
sweep12312-Nov-03 5:09
sweep12312-Nov-03 5:09 
GeneralRe: IDE Problem? VS 2002 .Net Pin
Antti Keskinen12-Nov-03 5:18
Antti Keskinen12-Nov-03 5:18 
GeneralRe: IDE Problem? VS 2002 .Net Pin
sweep12312-Nov-03 5:34
sweep12312-Nov-03 5:34 
GeneralTear-off menus Pin
owhite12-Nov-03 5:06
owhite12-Nov-03 5:06 
GeneralRe: Tear-off menus Pin
Maximilien12-Nov-03 5:54
Maximilien12-Nov-03 5:54 
GeneralSorting out duplicate drives... Pin
dandy7212-Nov-03 4:41
dandy7212-Nov-03 4:41 
I'm trying to enumerate all hard drive partitions on a machine with GetDriveType(), and come up with total/free disk space figures and such, and have come across an "interesting" scenario...

If you use something like:

SUBST X: C:\TEST

...enumerating this "drive" will count the storage space of C: twice (obviously, since both are physically the same drive).

Is there any API that will let me identify SUBST'ed drives? I don't see anything returned by GetDriveType() offering any indication that this is the case, and GetLogicalDrives() doesn't seem to care either.

Comparing volume names isn't reliable, as I can (and do) have any number of drives/partitions actually using the same volume names.

What about the Volume Serial Number parameter of GetVolumeInformation()? Is it possible to have two totally different drives/partitions with the same volume serial number? My understanding is that this serial number is generated when the partition is formatted...and I'm thinking that yes, something like Norton Ghost would probably make the system use identical volume serial numbers for totally unrelated drives...

Note also that I'm aware that this volume serial number isn't the same as the hard drive's physical serial number--which might come in handy (?), but isn't easy to get to from a Win32 app...

Suggestions?

GeneralRe: Sorting out duplicate drives... Pin
David Crow12-Nov-03 4:48
David Crow12-Nov-03 4:48 
GeneralRe: Sorting out duplicate drives... Pin
dandy7213-Nov-03 2:38
dandy7213-Nov-03 2:38 
GeneralRe: Sorting out duplicate drives... Pin
Terry O'Nolley12-Nov-03 10:22
Terry O'Nolley12-Nov-03 10:22 
GeneralUDP Client Pin
NewHSKid12-Nov-03 4:19
NewHSKid12-Nov-03 4:19 
GeneralRe: UDP Client Pin
Peter Molnar12-Nov-03 12:58
Peter Molnar12-Nov-03 12:58 
GeneralDeveloping, building, and testing. How do it the best? Learning from the world leader - Microsoft Pin
gicio12-Nov-03 3:36
gicio12-Nov-03 3:36 
GeneralRe: Developing, building, and testing. How do it the best? Learning from the world leader - Microsoft Pin
David Crow12-Nov-03 4:44
David Crow12-Nov-03 4:44 
GeneralWinsock ? Again Pin
Stan the man12-Nov-03 3:30
Stan the man12-Nov-03 3:30 
GeneralRe: Winsock ? Again Pin
Antti Keskinen12-Nov-03 3:47
Antti Keskinen12-Nov-03 3:47 
GeneralRe: Winsock ? Again Pin
Pir8ofTampa12-Nov-03 3:55
Pir8ofTampa12-Nov-03 3:55 
GeneralRe: Winsock ? Again Pin
Peter Molnar12-Nov-03 13:03
Peter Molnar12-Nov-03 13:03 
GeneralCheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 3:17
BoudewijnEctor12-Nov-03 3:17 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 3:29
David Crow12-Nov-03 3:29 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 4:04
BoudewijnEctor12-Nov-03 4:04 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 4:08
David Crow12-Nov-03 4:08 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 4:38
BoudewijnEctor12-Nov-03 4:38 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 4:54
David Crow12-Nov-03 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.