ReplaceFileW (was: Phoronix: Ubuntu 7.10 + WINE vs. Windows XP)

Alexandre Julliard julliard at
Mon Oct 22 03:38:56 CDT 2007

"Dmitry Timoshkov" <dmitry at> writes:

> I can't believe this, probably you misunderstood or misinterpreted something.
> ReplaceFile API needs to abide sharing and access rights rules which are known
> only to wineserver, and not known/available on the libc/kernel level.

Of course you need to call CreateFile to check sharing etc., but after
that the replacing should be done with link() and/or rename(), not by
copying the files. Essentially it should be done just like MoveFile.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list