Skip to content

Latest commit

 

History

History
128 lines (78 loc) · 4.17 KB

nf-versionhelpers-iswindowsxpsp3orgreater.md

File metadata and controls

128 lines (78 loc) · 4.17 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:versionhelpers.IsWindowsXPSP3OrGreater
IsWindowsXPSP3OrGreater function (versionhelpers.h)
Indicates if the current OS version matches, or is greater than, the Windows XP with Service Pack 3 (SP3) version.
IsWindowsXPSP3OrGreater
IsWindowsXPSP3OrGreater function
base.iswindowsxpsp3orgreater
versionhelpers/IsWindowsXPSP3OrGreater
base\iswindowsxpsp3orgreater.htm
winprog
06DC8FF0-8652-4652-855F-600AC53C6301
12/05/2018
IsWindowsXPSP3OrGreater, IsWindowsXPSP3OrGreater function, base.iswindowsxpsp3orgreater, versionhelpers/IsWindowsXPSP3OrGreater
versionhelpers.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Kernel32.lib; Ntdll.lib
Kernel32.dll; Ntdll.dll
Windows
19H1
IsWindowsXPSP3OrGreater
versionhelpers/IsWindowsXPSP3OrGreater
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
ntdll.dll
IsWindowsXPSP3OrGreater

IsWindowsXPSP3OrGreater function

-description

Indicates if the current OS version matches, or is greater than, the Windows XP with Service Pack 3 (SP3) version.

-returns

True if the current OS version matches, or is greater than, the Windows XP with SP3 version; otherwise, false.

-remarks

This function does not differentiate between client and server releases. It will return true if the current OS version number is equal to or higher than the version of the client named in the call. For example, a call to IsWindowsXPSP3OrGreater will return true on Windows Server 2008. Applications that need to distinguish between server and client versions of Windows should call IsWindowsServer.

For situations where a Windows Server version number isn't shared with a Windows client release, you can use IsWindowsVersionOrGreater to confirm.

Examples

The inline functions defined in the VersionHelpers.h header file let you verify the operating system version by returning a Boolean value when testing for a version of Windows.

For example, if your application requires Windows XP with SP3 or later, use the following test.

#include <VersionHelpers.h>if (!IsWindowsXPSP3OrGreater())
    {
       MessageBox(NULL, "You need at least Windows XP with SP3", "Version Not Supported", MB_OK);
    }

-see-also

IsWindows7OrGreater

IsWindows7SP1OrGreater

IsWindows8OrGreater

IsWindows8Point1OrGreater

IsWindowsServer

IsWindowsVistaOrGreater

IsWindowsVistaSP1OrGreater

IsWindowsVistaSP2OrGreater

IsWindowsXPOrGreater

IsWindowsXPSP1OrGreater

IsWindowsXPSP2OrGreater