How do I obtain the installed driver version?

I know you can get the vendor name and OpenGL version by calling glGetString (using GL_VENDOR and GL_VERSION) respectively but how do you get the number of the driver version that is currently installed?

(I want to do it programmatically via C++ and I don’t want to have to install an app like nvidia-settings)

Got it, at least on Windows you can use WMI queries using “Win32_VideoController” to specify the card and then “DriverVersion” gets you the version number back as a string.