Reliable OS version detecting
Posted: Fri Dec 13, 2013 8:14 pm
I need to precise detect the OS on which my app is running. The reason is complicated but basically I have a DLL which creates and manages the PDF files. This DLL works perfect on all Windows OS, except on Windows Server 2012 (Don't know about future Windows versions)
Works on all versions from XP to Windows 7, Windows 8, Windows Servers 2003, 2008.
Only Windows Server 2012 hangs the program when trying to access that DLL functions.
I need to detect the Windows Server 2012 OS and avoid calling this DLL and do some other PDF management is such case.
I was also thinking if there is some very specific file somewhere in Windows folder, which is solely related to Windows Server 2012 OS, maybe I can detect such file and then know that the machine runs Windows Server 2012?
Thanks
Works on all versions from XP to Windows 7, Windows 8, Windows Servers 2003, 2008.
Only Windows Server 2012 hangs the program when trying to access that DLL functions.
I need to detect the Windows Server 2012 OS and avoid calling this DLL and do some other PDF management is such case.
I was also thinking if there is some very specific file somewhere in Windows folder, which is solely related to Windows Server 2012 OS, maybe I can detect such file and then know that the machine runs Windows Server 2012?
Thanks