Re: Mismatch Between win32syscalls.h and Windows System Call Numbers

Paul Gofman <[email protected]> Thu, 5 Jun 2025 11:48:26 -0600
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <[email protected]>
> DVDFab depends on the syscalls matching the Windows 10 numbering when
> running on Windows 10. I think that's a good reason why Wine's syscall
> numbers should be changed to match those of the default Windows
> version in winecfg. See
> https://bugs.winehq.org/show_bug.cgi?id=58043#c4
>
> -Alex
Probably worth noting that the syscall numbers can't just be arbitrary 
assigned to what Windows has on the current version. There are few known 
cases when game detect those numbers not based on hardcoding per Windows 
version and not based on parsing syscall thunk, but based on the fact 
syscalls are sequentually ordered (starting from 0) on Windows when 
sorted by Nt function address in ntdll. There is now a test for that in 
commit ad6c662c468812549a636fcc0f66ec3f824c2675. So the solution 
probably has to have the syscall functions set matching Windows for the 
default Wine version in some way.