The RtlIsNtDdiVersionAvailable routine determines if a specified version of the Microsoft Windows device driver interface (DDI) is available.
- Version [in]
The version of the Windows DDI that is available. The following table lists the possible values for the Version parameter.
Constant Windows version
Windows Server 2008
Windows Server 2003
The NTDDI_XXX constants are defined in the Sdkddkver.h header file.
Additional NTDDI_XXX constants that specify service packs are available for the RtlIsServicePackVersionInstalled routine. Do not use these values for RtlIsNtDdiVersionAvailable.
RtlIsNtDdiVersionAvailable returns TRUE if the 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.
The RtlIsNtDdiVersionAvailable routine compares the version that the Version parameter specifies to the version of the Windows operating system that is currently running.
Use the RtlIsServicePackVersionInstalled routine if you want to determine whether a particular service pack is installed.
The Windows kernel implements RtlIsNtDdiVersionAvailable only in Windows Vista and later versions of Windows. However, a compatibility library, Rtlver.lib, implements a version of RtlIsNtDdiVersionAvailable that runs in Windows 2000 and later versions of Windows. For kernel-mode drivers that include the Wdm.h header file, calls to RtlIsNtDdiVersionAvailable go to the version of this routine that is implemented in Rtlver.lib.
For more information about RtlIsNtDdiVersionAvailable and RtlIsServicePackVersionInstalled, see Writing Drivers for Different Versions of Windows.
Available starting with Windows Vista. A compatibility library supports this routine in earlier versions of Windows (see Remarks section).