[Bug] MSDN, GetFileVersionInfo and mincore.lib

Started by fixer, June 11, 2017, 01:34:11 PM

Previous topic - Next topic

fixer

Can you trust MSDN? Or course you can, it's an official developer documentation, everyone relies on it and even if there are some bugs, they are quickly fixed. Or do they? For example you want to use some of these API functions: GetFileVersionInfoSize, GetFileVersionInfo or VerQueryValue. But your application doesn't want to link, it requires some lib-file. You go to MSDN to find out which one. It says: Library Mincore.lib. And if you try to build it, you'll soon find out this source of information isn't that reliable. As linking with that lib will require some ms-api-* DLLs like api-ms-win-core-sysinfo-l1-2-1.dll that aren't covered by redistributable package. And actually you need version.lib, with it you'll link just fine. So don't trust everything you read on MSDN.

This issue was found a couple of days ago, it wasn't fixed then. And according to google it hasn't been fixed from at least last year. It isn't fixed now.