JdeBP<p><span class="h-card" translate="no"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span> </p><p>Well, yes. It's Windows NT.</p><p>Everything in the Native API always returns an explicit NTSTATUS separately from (mostly via "out" parameters) actual result values.</p><p>OS/2 was the same, and it's one of the things that Microsoft and IBM did right. Albeit that POSIX Threads got this right, too.</p><p>The dates on all of those show that by the late 1980s people already knew that one could do better than setting errno or the result from one value according to a flag bit.</p><p><a href="https://tty0.social/tags/WindowsNT" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WindowsNT</span></a> <a href="https://tty0.social/tags/NativeAPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NativeAPI</span></a></p>