Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Jonas Maebe
On 20 Apr 2011, at 17:16, reynolight wrote: > Am 20.04.2011 16:58, schrieb Michael Van Canneyt: >> >> 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

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
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 > GetFil

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2011, reynolight wrote: Am 20.04.2011 13:47, schrieb Michael Van Canneyt: On Wed, 20 Apr 2011, reynolight wrote: g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
Am 20.04.2011 13:47, schrieb Michael Van Canneyt: > > > On Wed, 20 Apr 2011, reynolight wrote: > >> g: is the XP system volume. x: is the truecrypted NTFS partition. No >> problem to set / get / show file attributes with Win32 GUI on both >> volumes. Same with attrib.exe on console. >> >> sysutils.

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2011, reynolight wrote: g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on console. sysutils.FileGetAttr(g:\*) is fine, as well, but FileGetAttr(x:\*) returns -

[fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on console. sysutils.FileGetAttr(g:\*) is fine, as well, but FileGetAttr(x:\*) returns -1 as an error. After copying a file from x: