The price of backwards compatibility
Reading Raymond Chen today, you get the impression that the Windows API is just one big minefield where if you take anything at face value, your program will be full of bugs and holes. Is there any way out of this mess? Or will it always be the case that unlimited backwards compatibility leads to an unlimited number of gotchas in the API? It seems like the only hope is to use the newest Microsoft-written API wrapper available and pray that CRegKey or Microsoft.Win32.RegistryKey understands that just because REG_SZ implies that the string will be null-terminated doesn’t mean that it actually will be.