Both apps use exactly the same code. This has been working happily for some time.

Now, all of a sudden, it works in one app but not the other. The failing app gets a 0 returned from CreateFileMappingA. One would expect an error code to be available via GetLastError, but that returns 0 also.