[fpc-pascal] FileGetAttr fails on TrueCrypt partition
reynolight
reynolight at googlemail.com
Wed Apr 20 17:16:39 CEST 2011
Am 20.04.2011 16:58, schrieb Michael Van Canneyt:
>
> Well,
>
> This is the implementation of FileGetAttr:
>
> Function FileGetAttr (Const FileName : String) : Longint;
> begin
> Result:=GetFileAttributes(PChar(FileName));
> end;
>
> As you can see, the function returns the result of the
> GetFileAttributes Win32 API call.
> Why this call returns -1 is something that we cannot speculate on.
> Most likely seems an error in the filesystem driver.
>
> Michael.
Thanks, Michael. Came to the same result.
Obscure enough, I have no problems using TSearchRec attributes via
FindFirst / FindNext. Maybe I still need some additional, lonesome
research and the issue is sitting in front of my monitors.
Wolfram
More information about the fpc-pascal
mailing list