Re: [WIN] GetLogicalDrives returns drives NOT present

new topic     » goto parent     » topic index » view thread      » older message » newer message

<<SNIP>>
> > 
> > Chris: 
> > I kinda thought *logical* drives might be at least part of the problem I'm
> > having, but I don't think I can decipher/translate the C code.  I'm
> > wondering if there isn't some way to defeat the presentation of the error
> > messages?  I thought there is something along those line in Win32Lib?
> > 
> 
> If what you get is a dialog box that allows you to continue executing
> (yes/no/cancel),
> then calling setWarning(0) before running your code will suppress it. I must
> say that it is not the recommended way...
> 
> I'll try to find some time to post a translation of the code at MSDN.
> Actually,
> it's pretty simple: get all known volume strings, then retrieve all the paths
> for each of those strings. Because there are sequences of chars everywhere,
> the code isn't as short as you might exect at first, but... it may be worth
> to try again.
> 
> </snip>
> 
> CChris

CChris,

Thanks, but never mind, I found a "getVolumeInformation()" function
in a set of includes by Austin Cathey in my system, although I haven't yet
re-found it in contributions, where I must have got it from at some time.

That's pretty much what you originally suggested I do!  :)

Thanks for the effort, though.

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu