Directx9检测是否已安装 [英] Directx9 detect if installed

查看:484
本文介绍了Directx9检测是否已安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要测试DirectX9是否安装在带有C#代码的机器上。 Directx 10和11是操作系统的一部分,但必须由用户安装9。我需要它用于多媒体显示。

< \> b>

I need to test if DirectX9 is intalled on a machine with C# code. Directx 10 and 11 are part of the OS but 9 must be user installed. I need it for multimedia display.
<\>b>

推荐答案

如bytes.com上所述( Clickety [ ^ ])您可以检查注册表项 HKEY_LOCAL_MACHINE \Software \ Microsoft &\\DirectX



获取DirectX版本在同一位置读取 Version 字符串。如果密钥不存在 - 根本没有安装DirectX。





欢呼,

Marco Alessandro Bertschi
As descripted on bytes.com (Clickety[^]) You can check for the Registry key HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX.

To get the DirectX version read "Version" string in the same location. If the key does not exist - There is not DirectX installed at all.


cheers,
Marco Alessandro Bertschi


这篇关于Directx9检测是否已安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆