Writing synchronously to a file opened with FILE_FLAG_OVERLAPPED
问题 I have opened a file using HANDLE handle= CreateFileW( fileName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL); The file handle is then used for asynchronous read operations: ReadFile(handle, buffer, 1, NULL, &overlapped); This works. However, I want to do a synchronous write now. WriteFile documentation states that If hFile was opened with FILE_FLAG_OVERLAPPED, the following conditions are in effect: • The lpOverlapped parameter must point to a valid and