Stimmt eigentlich! Hier in D2010 / SysUtils.pas steht:
Delphi-Quellcode:
TSearchRec = record
Time: Integer;
Size: Int64;
Attr: Integer;
Name: TFileName;
ExcludeAttr: Integer;
{$IFDEF MSWINDOWS}
FindHandle: THandle platform;
FindData: TWin32FindData platform;
{$ENDIF MSWINDOWS}
{$IFDEF POSIX}
Mode: mode_t platform;
FindHandle: Pointer platform;
PathOnly: String platform;
Pattern: String platform;
{$ENDIF POSIX}
end;
und in windows.pas geht's weiter mit
Delphi-Quellcode:
_WIN32_FIND_DATAW = record
dwFileAttributes: DWORD;
ftCreationTime: TFileTime;
ftLastAccessTime: TFileTime;
ftLastWriteTime: TFileTime;
nFileSizeHigh: DWORD;
nFileSizeLow: DWORD;
dwReserved0: DWORD;
dwReserved1: DWORD;
cFileName: array[0..MAX_PATH - 1] of WideChar;
cAlternateFileName: array[0..13] of WideChar;
end;
Damit sollte alles funktionieren.