|
Boost Users : |
Subject: Re: [Boost-users] list all drives
From: Lloyd (lloyd_at_[hidden])
Date: 2010-07-12 02:20:47
Thanks Daniel. I was thinking of utilizing the portability of Boost :)
----- Original Message -----
From: "Daniel Trebbien" <dtrebbien_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Monday, July 12, 2010 4:20 AM
Subject: Re: [Boost-users] list all drives
>> Hi,
>>
>> I am programming on a widows system. Is it possible to list all drives
>> available in a system with boost::filesystem library or any other boost
>> library?
>>
>> I have gone through boost::filesystem documentation, but could not find
>> any
>> :(
>>
>> Thanks a lot,
>> Lloyd
>
> Hi Lloyd,
>
> Because the concept of drives is unique to Windows, Boost Filesystem
> does not implement such a function. Boost Filesystem and all Boost
> libraries are designed to be cross-platform.
>
> To obtain a list of drives, you should instead use the Windows API
> function `GetLogicalDriveStrings`:
> http://msdn.microsoft.com/en-us/library/aa364975.aspx
>
> Daniel
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
______________________________________
Scanned and protected by Email scanner
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net