Does anyone know how to retrieve this list in reverse Creation date order ?
AFAIK you get the list in whatever order the kernel wants to give it to you.
AIUI it's really just the order in which they occur in the directory which
is creation order for files created in an empty directory but as files are
deleted their entry positions are reused.
On NTFS filesystems, you'll get the files in alphabetical order; on
FAT filesystems, they'll be in no guaranteed order.
As others pointed out you get the names in the most efficient order ...
for the kernel that is.. :)
There are however numerous ways to sort string. One way is to create
(or use a hidden one on a dialog box) an Listbox with the sort option.
In fact, you might find the LB_DIR message useful.
Also, if you're working in C (perhaps even C++, though STL gives you
many additional methods), retrieve your file info into an array of
WIN32_FIND_DATA structures, and use qsort() to sort them.
Many thanks for your answers everyone.
"Jonathan Bishop" <Jonatha...@BTInternet.com> wrote in message