RtGetVersionEx

The function RtGetVersionEx retrieves the RTX product type and version in the form of the OSVERSIONINFOEX structure.

Syntax

BOOL RtGetVersionEx(  
	LPOSVERSIONINFO lpVersionInfo
);

Parameters

lpVersionInfo

An OSVERSIONINFOEX structure that receives the RTX product information. For information on the OSVERSIONINFOEX structure, see the MSDN article http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833(v=vs.85).aspx

The product edition defines are as follows:

RTX 2016 Editions

Suite Mask Value Description

1

PRODUCT_RT_SOLO

Indicates one shared or dedicated RTSS processor in a uniprocessor or multicore/multiprocessor environment.

2

PRODUCT_RT_ENTRY

Indicates one shared or up to two dedicated RTSS processors in a multicore/multiprocessor environment.

3

PRODUCT_RT_BASIC

Indicates one shared or up to three dedicated RTSS processors in a multicore/multiprocessor environment.

7

PRODUCT_RT_PROFESSIONAL

Indicates one shared or up to seven dedicated RTSS processors in a multicore/multiprocessor environment.

15

PRODUCT_RT_PREMIUM

Indicates one shared or up to 15 dedicated RTSS processors in a multicore/multiprocessor environment.

31

PRODUCT_RT_ULTIMATE

Indicates one shared or up to 31 dedicated RTSS processors in a multicore/multiprocessor environment.

0

PRODUCT_UNLICENSED

Indicates an unexpected license.

Return Values

A value of TRUE if the function succeeds, otherwise FALSE.

The function fails with a GetLastError of ERROR_INVALID_PARAMETER if wProductType is NULL.

Remarks

The following parameters are used to retrieve RTX product information:

dwMajorVersion

The major version number of the product version.

dwMinorVersion

The minor version number of the product version.

dwBuildNumber

The build number of the operating system.

dwPlatformId

The operating system platform.

szCSDVersion[128]

A null-terminated string, such as "Service Pack 3", that indicates the latest service pack installed on the system. If no service pack has been installed, the string is empty.

wServicePackMajor

The major version of the service pack.

wProductType

The product edition.

Requirements

Header Rtapi.h
Library Rtx_Rtss.lib (RTSS)
IntervalZero.com | Support | Give Feedback