4 ms·
> If all windows applications used the APIs like they were supposed to, then there would be no need to emulate the Windows syscalls. The Win32 API's require ce
by kazinator 6y ago
> If all windows applications used the APIs like they were supposed to, then there would be no need to emulate the Windows syscalls.
The Win32 API's require certain operating system semantics, and not all of that semantics comes nicely from Linux syscalls.
A Win32 API library on Linux benefits from Windows-like syscalls underneath, even if nobody is bypassing that library to get to those syscalls.
Think about it; that is exactly like saying that if programs were just written to the C API described in the POSIX spec, we wouldn't need a Unix-like kernel underneath. While that isn't an outright false statement, it has implications for the nature and quality of the system.