Re: [WIN] GetLogicalDrives returns drives NOT present
- Posted by Dan Moyer <danielmoyer at p?od?gy.net> Jan 29, 2008
- 1101 views
Dan Moyer wrote: > > <<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 Oops, the "getVolumeInformation" was really by William Heimbigner, it used a dll handling include that was by Austin Cathey, that's what confused me, I thought they were both by the same person. Dan