PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the runtime mode of Windows.
Reminder: WINDEV allows you to create 32-bit and 64-bit executables.
Example
// Find out the Windows version: 32 bits or 64 bits

Version is int
Version = WindowsVersion()
SWITCH Version
CASE 32: Info("Windows is run in 32 bits")
CASE 64: Info("Windows is run in 64 bits")
END
// Find out whether the current application is run in 32 bits or in 64 bits

// The size of a system integer depends on the runtime mode (32/64 bits)
// The runtime mode can be found from this size

// From version 16, you have the ability to use In64BitMode.

SystemInt is system int
SystemInt = (Dimension(SystemInt)*8)
SWITCH SystemInt
CASE 32: Info("32-bit mode")
CASE 64: Info("64-bit mode")
OTHER CASE: Info("Mode " + SystemInt + " -bit mode")
END
Syntax
<Result> = WindowsVersion()
<Result>: Character string
Returns the runtime mode of program in the current environment:
  • "32": the program operates in 32-bit mode in a 32-bit environment.
  • "64": the program operates in 32-bit or 64-bit mode in a 64-bit environment.
Remarks
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment