Juan Lang wrote:
The Windows API is of course public, so my guess is that isn't a huge bar to creating WINE.
Unfortunately, you guess incorrectly. While the API may legally be public (the interface can't be protected, as far as we know,) it isn't always documented. MS uses undocumented APIs very, very frequently in its own products, and I don't just mean in its applications: parts of its API depend on other, hidden parts of its API. Even the parts that are documented are not documented completely. For example, many APIs take 32-bit flags parameters, some of whose meanings are documented. But the behavior for all possible values is not well-specified, nor are the return values. I continue this thread next:
And on that note: does anybody know of any documentation anywhere for msvcrt sopen? Particularly, what the different pmode flags mean (I'm getting 0x01b6)...