GetWindowsVersion

The GetWindowsVersion simplifies windows version reporting.

function GetWindowsVersion(
): WORD; stdcall;

Parameters

none

Return Values

Return any one of the following values.

Value Meaning
WIN_WIN9X Windows 9x
WIN_WINNT Windows NT
WIN_WIN95 Windows 95
WIN_WIN98 Windows 98
WIN_WIN98SE Windows 98SE
WIN_WINME Windows ME
WIN_WINNT4 Windows NT 4.0
WIN_WIN2K Windows 2000
WIN_WINXP Windows XP
WIN_WORKSTN Workstation flavor of any version of Windows NT.
WIN_SERVER Server flavor of any version of Windows NT.
WIN_PERSNL Personal Edition of Windows.
WIN_PROFSNL Professional Edition of Windows.
WIN_ADVSVR Windows Server Advanced Server
WIN_DTACNTR Windows Server Datacenter Server


The following values are used for easy checking of Windows versions.

Value Meaning
WIN_EASY_WIN95 Windows 95
WIN_EASY_WIN98 Windows 98
WIN_EASY_WIN98SE Windows 98SE
WIN_EASY_WINME Windows ME
WIN_EASY_WINNT Windows NT 4.0
WIN_EASY_WIN2K Windows 2000
WIN_EASY_WIN2KSRVR Windows 2000 Server
WIN_EASY_WINNTSRVR Windows NT 4.0 Server
WIN_EASY_WINXP Windows XP

Remarks

none.

Requirements

Network Statistics 1.2 Full
Header: declared in tnstat.pas.
Library: nstat.dll

See Also

Network Statistics Function Reference


Send questions and comments to:
support@hplsoft.com
© 2002, HPL Software