copy implementation of CopyFileExW into CopyFile2,
then implement CopyFileExW in terms of CopyFile2
should fix https://bugs.winehq.org/show_bug.cgi?id=55897, as Python does not use any new functionality nor the callback parameter from CopyFile2.
I have not written extensive documentation since the original function didn't seem to have any; I can do that if recommended.
I originally intended to implement the callback functionality in this MR as well, but realized that would be better as a follow-up.
--
v8: implement CopyFile2
https://gitlab.winehq.org/wine/wine/-/merge_requests/5020
This is a preparation for supporting more xstate features in the contexts.
The remaining parts are:
- support arbitrary xstate in usr1_handler();
- support arbitrary xstate in the server contexts (probably transferring only the present part);
- support arbitrary xstate in context manipulation functions;
- enabling more xstates in system.c and in user shared data.
--
v2: ntdll: Don't hardcode xstate size in exception stack layout.
ntdll: Don't hardcode xstate size in syscall frame.
ntdll: Don't hardcode xstate feature mask.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4987