From: Nuno on
On 6 Maio, 18:22, paul <p...(a)lisp.com> wrote:
> Nuno wrote:
> > Hello,
>
> > I'm trying to obtain the last write time on a usb drive (example e:\)
> > with a FAT file system, i'm using the GetFileTime(...) function,
> > example:
>
> > FILETIME ftCreate, ftAccess, ftWrite;
>
> > //reset the default return value:
> > ftWrite.dwHighDateTime=0;
> > ftWrite.dwLowDateTime=0;
>
> > HANDLE hFile = CreateFile(_T("e:\\"),
>
> and which directory in e: ?!

the root dir is what is need, like c:\ or d:\ i need the info for the
e:\ that is the root dir of my usb drive
From: paul on
Nuno wrote:
> On 6 Maio, 18:22, paul <p...(a)lisp.com> wrote:
>> Nuno wrote:
>>> Hello,
>>> I'm trying to obtain the last write time on a usb drive (example e:\)
>>> with a FAT file system, i'm using the GetFileTime(...) function,
>>> example:
>>> FILETIME ftCreate, ftAccess, ftWrite;
>>> //reset the default return value:
>>> ftWrite.dwHighDateTime=0;
>>> ftWrite.dwLowDateTime=0;
>>> HANDLE hFile = CreateFile(_T("e:\\"),
>> and which directory in e: ?!
>
> the root dir is what is need, like c:\ or d:\ i need the info for the
> e:\ that is the root dir of my usb drive

The root dir has no write time, of course !
From: paul on
Nuno wrote:
> Hello,
>
> I'm trying to obtain the last write time on a usb drive (example e:\)
> with a FAT file system, i'm using the GetFileTime(...) function,
> example:
>
> FILETIME ftCreate, ftAccess, ftWrite;
>
> //reset the default return value:
> ftWrite.dwHighDateTime=0;
> ftWrite.dwLowDateTime=0;
>
> HANDLE hFile = CreateFile(_T("e:\\"),

and which directory in e: ?!