4.21 - GetWinVersion [U12 Datasheet]
Uses a Windows API function to get the OS version. Declaration:
long GetWinVersion ( unsigned long *majorVersion,
unsigned long *minorVersion,
unsigned long *buildNumber,
unsigned long *platformID,
unsigned long *servicePackMajor,
unsigned long *servicePackMinor )
Parameter Description: Returns: LabJack errorcodes or 0 for no error.
Table 4.21-1. Outputs
OS Name | Platform | Major | Minor | Build |
Windows 3.1 | 0 | - | - | - |
Windows 95 | 1 | 4 | 0 | 950 |
Windows 95 OSR2 | 1 | 4 | 0 | 1111 |
Windows 98 | 1 | 4 | 10 | 1998 |
Windows 98 SE | 1 | 4 | 10 | 2222 |
Windows ME | 1 | 4 | 90 | 3000 |
Windows NT 3.15 | 2 | 3 | 51 | - |
Windows NT 4.0 | 2 | 4 | 0 | 1381 |
Windows 2000 | 2 | 5 | 0 | 2195 |
Windows XP | 2 | 5 | 1 | - |
ActiveX Function Differences: All unsigned long parameters are changed to double precision float.