Reputation: 31
how could we get the driver version of a display device programmingly? we can get information of the Display Device by running the command "DxDiag", including (1) the card name: NVIDIA GeForce GTX745;(2) Manufacturer:(3) NVIDIA, and the Driver name;(4) the driver File version:23.21.13.9077 (this number of 23.21.13.9077 is exactly what we want).
the program need to tell the least driver version number of a display device in case of program crash. this driver version leads to program crash. here i want to hint the user to upgrading driver version in case of program crashing.
Edit: Actually the driver version of the display device is different from the OpenGL version (which can retrieved by using glGetString(GL_VERSION)).
Here the link describe the problem in details if you have further interest.
any help is very thankful!
Upvotes: 0
Views: 1326
Reputation: 11022
How to get the driver version of a display device?
This, I believe, can be done using setupapi.h
https://learn.microsoft.com/da-dk/windows/desktop/api/setupapi/
and see also this subpage:
See also this answer, that is somewhat related to how you 'navigate' the API:
How to get device properties in windows in c++?
Upvotes: 1