Function ReadFileEx in Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Berillions
Level 4
Level 4
Posts: 230
Joined: Sat Mar 28, 2009 12:55 pm

Function ReadFileEx in Wine

Post by Berillions »

Hi,
I would like to know if this function is completely implement in Wine because since the release of new Ubisoft's games, there is a problem to launch correctly the game.

The error message is :

Code: Select all

 2011-12-21 22:04:31 [  97] [ERROR ] NamedPipeReceiveLoop.cpp (74) : ReadFileEx failed, error = 997.
On Microsoft msdn website, this error (997 = ERROR_IO_PENDING) means that an operation I/O overlapped (or asynchronous) is in progress. See here : http://msdn.microsoft.com/en-us/library ... 85%29.aspx

I quote a text from this page http://msdn.microsoft.com/en-us/library ... 85%29.aspx:
When a function is called to perform an overlapped operation, the operation might be completed before the function returns. When this happens, the results are handled as if the operation had been performed synchronously. If the operation was not completed, however, the function's return value is FALSE, and the GetLastError function returns ERROR_IO_PENDING.
It's clear and easy to understand the text but it's difficult to apply this in Wine ?

Thanks
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Berillions
Level 4
Level 4
Posts: 230
Joined: Sat Mar 28, 2009 12:55 pm

Post by Berillions »

I know Dan but there isn't help or dev's comment to explain if it's possible to resolv the problem or not, and it's possible, how to make.
Ma Xiaojun

Function ReadFileEx in Wine

Post by Ma Xiaojun »

Hi, Berillions

I happened to take a course taking about Win32 IO (for Winsock) in
detail. You may check the following slide.

http://course.ie.cuhk.edu.hk/~ierg4180/ ... amming.pdf
Locked