Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : Getting the physical drive name from a logical drive (partitioned drive)

www.cryer.info
Managed Newsgroup Archive

Getting the physical drive name from a logical drive (partitioned drive)

Subject:Getting the physical drive name from a logical drive (partitioned drive)
Posted by:"ahmoy law" (ahmoyl..@gmail.com)
Date:16 May 2007 20:27:28

Hi there,

This is the scenario, my application needs to read/process
hundred thousand of files from a list of paths.
My first POC application uses multi-thread to access this files
but then the result is... multi-thread processing on a single
physical drive cannot guarantee a good result (and sometimes it
has performed slower than a single thread since these threads
accessing a same resource)!

so my planning now is grouping the threads based on different
physical drive (not based on the logical drive since this
more or less just like processing on different folder) but is
there any API to get the physical drive name from a given path?
I have checked the GetVolumeInformation but it only returns
logical drive information.

many thanks to peter below for my previous question.

Thanks in advance,
ahmoy law

Replies:

www.cryer.info
Managed Newsgroup Archive