I think the claim really should be that the defaults are "defective." Reading the thread, it seems the API does support truncating the opened file.
Interesting gotcha nevertheless.
Interesting gotcha nevertheless.
(or just pad the rest with zeros worse case)
[1] https://learn.microsoft.com/en-us/windows/win32/fileio/when-...
https://learn.microsoft.com/en-us/windows/win32/fileio/about...
Given that this notice seems to exist since at least 2012, and neither Windows 10 nor 11 deprecated it, the TxF API will probably outlive whatever software you're writing today.
It's deprecated in all but name only.