Thanks JuhaManninen, Timewarp.
Use the cross-platform functions provided by FPC libs and LCL, instead of WinAPI.
But FindAllFiles - this is the Lazarus modern functionality, as i understand.
FindAllFiles is located in FileUtil unit, and is using TFileSearcher.Search method to find for files, which is using FindFirstUTF8/FindNextUTF8, which is using probably, yes, winAPI.
Ex. one of those files which was is not found by 32-bit compiled program:
C:\Windows\system32\7B296FB0-376B-497e-B012-9C450E1B7327-5P-0.C7483456-A289-439d-8115-601632D005A0
How can you explain this results?
What is it, from where this files?