I am working on a C application (not c++). Basically the code is in *.c file. I want to add another function to this file to check the windows OS version on which my application is running. I am trying to use the versionhelper functions described below --https://learn.microsoft.com/en-us/windows/desktop/sysinfo/version-helper-apis. However, when I try to add below header file I get compilation error saying -cannot open source file "VersionHelpers.h" --
#include <VersionHelpers.h>
I think this is because my file is a C file. Is there any way to read windows OS version from C code? (Not C++)