Fomin Windows Version v.1.0

Windows version detection in Clarion applications and hand coded projects using MSDN documented Windows API functions.

Windows language agnostic, fast and reliable (I hope).

Freeware. Full source code included.

Ready to run executable also included for your convenience. You are encouraged to test it on various Windows versions.

Bug reports, suggestions, feature requests are welcome.


Quick start.
-----------
Unzip FominWindowsVersion.zip file into appropriate place.

For quick start and test use supplied "test.*" project (solution).

The "test.prj" file can be opened and compiled by Clarion 6 and below. 

Later Clarion versions can make use of "test.prj" with conversion to newer file format.

Supplied "test.sln" solution file can be quickly opened by Clarion 10 as is.


Instructions.
------------
To use Fomin Windows Version in your Clarion 6 app follow these steps:

0. Place required files into your "Clarion6\3rdParty\libsrc" folder
   (use "Clarion10\accessory\libsrc\win" for Clarion 10).

   FominWindowsVersion.clw
   FominWindowsVersion.inc
   test.manifest

1. "Inside the Global Map" embed point insert following source line
    INCLUDE('FominWindowsVersion.inc','InsideGlobalMap')

2. Main menu - Project - Edit...
   Add file... FominWindowsVersion.clw to "External Source Files"

3. Main menu - Project - Edit...
   Add file... test.manifest to "Library, object and resource files"

4. Just for test purpose in "Program Setup" embed point add
  MESSAGE(Fomin_GetWindowsVersion())

5. Generate, compile and run the app, see the message with Windows version information.

Having these steps performed, you can use Fomin_GetWindowsVersion() procedure anywhere in you app. 
Other Fomin_ procedures, which are listed in SECTION('InsideGlobalMap') of FominWindowsVersion.inc file, can be used as well.

Exactly the same steps required with Clarion 7 and above. 
Use "Solution Explorer" of the modern Clarion IDE to perform steps 2 and 3.
You will not find "External Source Files" section though, just add FominWindowsVersion.clw to project root.

Enjoy,
---
  Oleg Fomin <oleg@fomin.info>
  http://fomintols.com