tutajames.blogg.se

Como atualizar o directx 9
Como atualizar o directx 9





  • Initialize the provider with the initialization parameters.
  • Instantiate the provider by creating the coclass and casting it to the interface.
  • Now we get to use our wrappers and have to do the following to retrieve the version info: Void GetProp(string pwszPropName, out object pvarProp) Void GetNumberOfProps(out uint pdwCount) Void GetNumberOfChildContainers(out uint pdwCount)

    como atualizar o directx 9

    Void GetChildContainer(string pwszContainer, out IDxDiagContainer ppInstance) Void EnumPropNames(uint dwIndex, string pwszPropName, uint cchPropName) Void EnumChildContainerNames(uint dwIndex, string pwszContainer, uint cchContainer) You also need to wrap the IDxDiagContainer class: Void GetRootContainer(out IDxDiagContainer ppInstance) Void Initialize(ref DXDIAG_INIT_PARAMS pParams) NET Core, so let's wrap those COM objects ourselves! For documentation of the methods, you can still refer to the documentation linked above.įirst, you need the IDxDiagProvider interface and the DxDiagProvider coclass together with the DXDIAG_INIT_PARAMS passed to the provider: It requires a moment to complete too, so it's not a fast solution either, but at least you don't need to create or parse a raw file.Īpparently, this functionality was previously wrapped in the managed DirectX assemblies in, as they have a very similar interface to what the COM objects provide, but these assemblies are outdated and not working in. That means determining if their version is 10, 10.1, 11 or 11.1.Īnother possibility is using the IDxDiagProvider COM object directly and browse through the IDxDiagContainer hierarchy it yields - this is what dxdiag.exe does internally. I need an answer that applies to DirectX 10 installs and up.

  • The answer to this question yet again references the same registry key for DirectX 9 and lower ONLY.
  • NET How to detect if DirectX 10 is supported? Even on a Windows 7 system with DirectX 11.1 installed, this registry key will never indicate an installed version greater than 9.0c

    como atualizar o directx 9

  • The second answer references a registry key which only applies to DirectX 9 and lower.
  • This is wrong, as Vista supports both DirectX 10 and 11 and Windows 7 supports DirectX 11 and 11.1.
  • The first answer in this question says "If Windows 7, DirectX = 11, if Windows Vista, DirectX = 10".
  • How to code to get direct X version on my machine in C#?.
  • As per the title, how can I check which version of DirectX a user has installed? Checking the FeatureLevel isn't enough, as my application can run on feature level 10.0, but requires that DirectX 11.1 be installed.







    Como atualizar o directx 9