DirectX Version Checking
Microsoft DirectX 9.0 SDK Update (October 2004)

DirectX Version Checking


Applications sometimes need to know which version of Microsoft DirectX is currently available on the system. If an older version of DirectX is on the system, your application may need to scale itself to the capabilities of that version or install the most recent version.

The table lists the version of DirectX that shipped with each operating system:

Operating SystemDirectX Version
Microsoft Windows 98 GoldDirectX 5.2
Windows 98 SEDirectX 6.1a
Windows 2000DirectX 7.0
Windows Millennium Edition (Windows Me)DirectX 7.1
Windows XPDirectX 8.1

DirectX 9.0 is supported on Windows XP.

The GetDXVer SDK sample has a function in it called GetDXVersion that returns the version of DirectX that is installed. As long as this integer is greater than or equal to your desired version number, your application will run normally.

Path

Source:(SDK root)\Samples\C++\Misc\GetDXVer
Executable:(SDK root)\Samples\C++\Misc\Bin\GetDXVer

Checking the Operating System Version

Use the Windows function GetVersionEx World Wide Web link to check the operating system installed. This function returns an OSVERSIONINFOEX World Wide Web link structure that contains a variety of information about the operating system.

Related Topics



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.