Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.33 KB

GetVersion.md

File metadata and controls

45 lines (28 loc) · 1.33 KB

Home

Function name : GetVersion

Group: System Information - Library: kernel32


The GetVersion function returns the current version number of Windows and information about the operating system platform


Code examples:

OS version and revision
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer

Declaration:

DWORD GetVersion(VOID)  

FoxPro declaration:

DECLARE INTEGER GetVersion IN kernel32
  

Parameters:

This function has no parameters


Return value:

If the function succeeds, the return value is the major and minor version numbers of Windows and a code specifying the operating system platform. The low-order word contains the version number of Windows. The high-order byte specifies the minor version (revision) number, in hexadecimal notation. The low-order byte specifies the major version number, in hexadecimal notation


Comments:

The very basic information is returned. The extended version gives more, though more efforts needed to convert the result into FoxPro variables