Expand Minimize

RtlIsNtDdiVersionAvailable routine

The RtlIsNtDdiVersionAvailable routine determines if a specified version of the Microsoft Windows device driver interface (DDI) is available.

Syntax


BOOLEAN RtlIsNtDdiVersionAvailable(
  _In_  ULONG Version
);

Parameters

Version [in]

The version of the Windows DDI that is available. The following table lists the possible values for the Version parameter.

ConstantWindows version

NTDDI_WINBLUE

Windows 8.1

NTDDI_WIN8

Windows 8

NTDDI_WIN7

Windows 7

NTDDI_WS08

Windows Server 2008

NTDDI_VISTA

Windows Vista

NTDDI_WS03

Windows Server 2003

NTDDI_WINXP

Windows XP

NTDDI_WIN2K

Windows 2000

 

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.

Return value

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.

Remarks

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.

Requirements

Version

Available starting with Windows Vista. A compatibility library supports this routine in earlier versions of Windows (see Remarks section).

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Rtlver.lib

IRQL

PASSIVE_LEVEL

See also

RtlIsServicePackVersionInstalled

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft