TITLE : Finding your Operating System version programmatically
The official way, however, to do version checking, is to use VerifyVersionInfo. If this look daunting, there are a whole bunch of helper functions such as IsWindows10OrGreater(), IsWindowsServer() and so on. This only lets you find out if you're running Windows greater than X, or less than X, or equal to X. It doesn't tell you outright what you're running on........