On Fri Jan 24 19:43:45 2025 +0000, William Horvath wrote:
This is basically the "first alternative" that I suggested, but returning in the parameter instead of the return value. I can do that.
On a separate note, I'd also test GetLastError() after Sleep / SleepEx (doing SetLastError(0xdeadbeef) before each of test) and SleepEx return value, to see that it is all handled correctly with new NtDelayExecution returns. If there are any apps depending on proper "no yield" status and if GetLastError() reflects that I'd expect that to be used more often than calling Nt function directly.