Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* GET_WINVER.PRG
Declare LONG GetVersionEx in WIN32API STRING
STORE 0 to;
dwOSVersionInfoSize,;
dwMajorVersion,;
dwMinorVersion,;
dwBuildNumber,;
dwPlatformId
szCSDVersion = ""
PId = ""
lczStructure = chr(5*4+127+1)+replicate(chr(0), 5*4-1)+space(127)+chr(0)
lcReturn = ""
lnResult = GetVersionEx( @lczStructure )
IF lnResult <> 0 && No Error
dwOSVersionInfoSize = asc2BEint(lczStructure, 1, 4)
dwMajorVersion = asc2BEint(lczStructure, 5, 4)
dwMinorVersion = asc2BEint(lczStructure, 9, 4)
dwBuildNumber = asc2BEint(lczStructure, 13, 4)
dwPlatformId = asc2BEint(lczStructure, 17, 4)
szCSDVersion = ALLTRIM(strtran(SUBSTR(lczStructure, 21),chr(0),""))
DO Case
Case dwPlatformId = 0
PId = "32s " && "Windows 32s "
Case dwPlatformId = 1
PId = "95/98 " && "Windows 95/98 "
Case dwPlatformId = 2
PId = "NT " && "Windows NT "
Case dwPlatformId = 3
PId = "2000 " && "Windows 2000 "
ENDCASE
lcReturn = PId ;
+ ALLTRIM(transform(dwMajorVersion));
+ "." + ALLTRIM(transform(dwMinorVersion));
+ " (Build "+ ALLTRIM(transform(dwBuildNumber));
+ ": "+ szCSDVersion;
+ ")"
ENDIF
RETURN lcReturn