Added x64 version (able to scan big lists of files); Fixed ScanDirectory function (now it properly scans big lists); Fixed StopScan button's behavior (now it able to stop multiple scan threads).
This commit is contained in:
@@ -26,7 +26,6 @@ type
|
||||
TBytesArray = array [0 .. cMaxFileSize - 1] of byte;
|
||||
PBytesArray = ^TBytesArray;
|
||||
|
||||
function GetStartDir: string;
|
||||
function GetFileSizeAPI(const FileName: string): Int64;
|
||||
function CheckFileExists(const FileName: string): boolean;
|
||||
// function cHex2Int( const Value : string) : Integer;
|
||||
@@ -124,7 +123,7 @@ var
|
||||
FindData: TWin32FindData;
|
||||
hFind: THandle;
|
||||
begin
|
||||
Result := -1;
|
||||
Result := 0;
|
||||
hFind := FindFirstFile(PChar(FileName), FindData);
|
||||
|
||||
if hFind <> INVALID_HANDLE_VALUE then
|
||||
@@ -137,21 +136,4 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
function GetStartDir: string;
|
||||
const
|
||||
MAX_PATH = 260;
|
||||
var
|
||||
Buffer: array [0 .. MAX_PATH] of Char;
|
||||
I: Integer;
|
||||
begin
|
||||
I := GetModuleFileName(0, Buffer, MAX_PATH);
|
||||
for I := I downto 0 do
|
||||
if Buffer[I] = '\' then
|
||||
begin
|
||||
Buffer[I + 1] := #0;
|
||||
break;
|
||||
end;
|
||||
Result := Buffer;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
Reference in New Issue
Block a user