WINVER(3) libwin Reference WINVER(3)
NAME
winver - libwin Windows version functions
SYNOPSIS
#include <libwin.h>
int win_present (void);
int win_getos (void);
int win_getversion (int *major, int *minor, int *mode);
int win_winoldap_getversion (int *major, int *minor, int
*clip);
DESCRIPTION
win_present() checks to see whether Windows is currently
running.
win_getos() identifies which Windows OS is being run. The
values returned are:
OS_UNKNOWN
Unknown Windows platform
OS_WIN1
Windows 1 (very unlikely)
OS_WIN2
Windows 2 (unlikely)
OS_WIN30
Windows 3.0 (any mode)
OS_WIN31
Windows 3.1 (any mode) - this may include Win-
dows 3.1 for Workgroups
OS_WIN311
Windows 3.11 - this may include Windows 3.11
for Workgroups
OS_WIN95
Windows '95
OS_WINNT31, OS_WINNT35, OS_WINNT40
Windows NT
Currently, the version number of Windows NT is not
obtained. win_getos() returns OS_WINNT31 by default. The
best (i.e. future-proofed) way is to see if the return
value is any of OS_WINNT31, OS_WINNT35 or OS_WINNT40.
win_getversion() checks to see if Windows is running, and
fills major and minor with the major and minor version
libwin 0.1.5 22 September 2002 1
WINVER(3) libwin Reference WINVER(3)
numbers of Windows, and mode with the mode Windows is run-
ning under (one of WINMODE_REAL, WINMODE_STANDARD, WIN-
MODE_ENHANCED). Windows '95 runs in enhanced mode.
win_winoldap_getversion() returns the major and minor ver-
sions of Windows' Winoldap module, the DOS box support
module. If clipboard access from a DOS box is supported,
then clip is assigned 1, else 0.
RETURN VALUES
All return 1 on success, i.e. Windows is running or
Winoldap is present, and 0 on failure.
SEE ALSO
libwin(7)
libwin 0.1.5 22 September 2002 2
Page created on Sun Sep 29 21:12:26 2002 by m2h.pl, a man page to HTML convertor.
m2h.pl Version 1.3.2, Copyright 1997-2002 by Richard Dawe <richdawe@bigfoot.com>