Hello.
I ran into the next problem. I need to read the first n lines from the files in the directory and put them into another file, and this should be done using the Win32 API (CreateFile, ReadFile, WriteFile и т.д.) functions Win32 API (CreateFile, ReadFile, WriteFile и т.д.) . It was not difficult to do all this synchronously, but to do it asynchronously (and that's exactly what I need) does not work. In the penultimate parameter of the CreateFile (flagsAndAttributes) function CreateFile (flagsAndAttributes) I pass the Overlapped file attribute, and the ReadFile function immediately starts returning false . How to organize a read-write, I can not understand. Help me please. I write, generally speaking, in C #, but the code in C ++ also helps. The main Win32Api is using Win32Api functions and asynchronous operation.