The RtlIsServicePackVersionInstalled routine determines if a specified service pack version of the Microsoft Windows device driver interface (DDI) is installed.
- Version [in]
The service pack version of the Windows DDI that is available. The following table lists the possible values for Version.
Constant Windows version
Windows 7 and Windows Server 2008 R2
Windows Server 2008 with Service Pack 2 (SP2)
Windows Server 2008
Windows Vista with SP2
Windows Vista with SP1
Windows Server 2003 with SP2
Windows Server 2003 with SP1
Windows Server 2003
Windows XP with SP3
Windows XP with SP2
Windows XP with SP1
Windows 2000 with SP4
Windows 2000 with SP3
Windows 2000 with SP2
Windows 2000 with SP1
The NTDDI_XXX constants are defined in the Sdkddkver.h header file. The preceding table does not contain an entry for Windows Server 2008 with SP1. The first service pack to become available for Windows Server 2008 is SP2.
RtlIsServicePackVersionInstalled returns TRUE if the service pack version of the Windows operating system that is running is the same or later than the version that the Version parameter specifies. Otherwise, this routine returns FALSE. RtlIsServicePackVersionInstalled also returns FALSE if the major version (for example, Windows Vista or Windows Server 2003) that Version specifies does not match the major version of Windows that is currently running on the computer.
The RtlIsServicePackVersionInstalled routine compares the version that the Version parameter specifies to the version of the currently running Windows operating system.
Use the RtlIsNtDdiVersionAvailable routine to determine if a major version of Windows is running.
For more information about RtlIsServicePackVersionInstalled and RtlIsNtDdiVersionAvailable, see Header File Changes in the Windows Driver Kit.
The Windows kernel implements RtlIsServicePackVersionInstalled only in Windows Vista and later versions of Windows. However, a compatibility library, Rtlver.lib, implements a version of RtlIsServicePackVersionInstalled that runs in Windows 2000 and later versions of Windows. For kernel-mode drivers that include the Wdm.h header file, calls to RtlIsServicePackVersionInstalled go to the version of this routine that is implemented in Rtlver.lib.
|Available in Windows Vista and later versions of Windows. A compatibility library supports this routine in earlier versions of Windows (see Remarks section).|
Build date: 5/2/2013