DTWinVer LogoDtWinVer v1.74

 

Features
Copyright
History
API Reference
Notes
Enhancements
Contacting the Author

 

 

 

Features

DtWinVer is a C++ class which provides a comprehensive method to determine which OS the program that calls it is running on. All methods it uses are fully documented on various articles on the MSDN CD. The routine provides the emulated OS as well as the underlying OS. e.g to a Dos program Windows 95 looks like MS-DOS 7.0. A full list of the OS’s it can detect are:

 

Some of the possible scenarios it can report on are:

 

 

 

Copyright

You are allowed to include the source code in any product (commercial, shareware, freeware or otherwise) when your product is released in binary form. You are allowed to modify the source code in any way you want except you cannot modify the copyright details at the top of each module. If you want to distribute source code with your application, then you are only allowed to distribute versions released by the author. This is to maintain a single distribution point for the source code. 

 

 

 

History

v1.1 (8 May 1997)

v1.2 (13 September 1998)

v1.3 (22 June 1998)

v1.31 (23 July 1999)

v1.32 (26 July 1999)

v1.33 (28 July 1999)

v1.34 (2 February 2000)

v1.35 (30 June 2000)

v1.4 (29 January 2001)

v1.41 (10 February 2001)

v1.42 (10 October 2001)

v1.5 (13 December 2001)

23 March 2002

v1.6 (30 August 2002)

v1.61 (8 October 2002)

v1.62 (11 October 2002)

v1.63 (10 January 2003)

v1.64 (30 January 2003)

v1.65 (8 February 2003)

v1.66 (12 February 2003)

v1.67 (8 March 2003)

v1.68 (10 April 2004)

v1.69 (26 June 2005)

v1.70 (29 June 2005)

v1.71 (22 July 2005)

v1.72 (6 September 2005)

v1.73 (17 May 2006)

v1.74 (21 September 2006)

 

 

 

API

The API provided is through a C++ class namely "COSVersion". It provides a number of functions, the most important being "GetVersion" which does the actual version detection. There are a number of additional functions which tell you if a certain "flavour" of an operating system is installed. For more info on how to use the function, please see the code in test.cpp.

 

 

 

Notes

The code uses C++ but does not use MFC. Files are also included which builds a simple application which reports the OS version, through a message box on Windows and stdio in Dos.

The mak files are:

Also included in the winver32 workspace is a sub project to build the WriteVer executable needed for the 16 bit DOS code path in DtWinVer.

Areas where the code may prove useful are:

 

 

 

Planned Enhancements

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
21 September 2006