Well, the binary will refer to either the Direct3D DLL or the OpenGL DLL. In DirectX, each version has its own set of DLLs. In the case of OpenGL, the only way to tell is to intercept OpenGL calls. OpenGL-3 and above require a special method for creating context, which includes setting up the expected version. All that is in front of OpenGL-3 is actually OpenGL-1.1 with extensions, where some of the extensions have become the main functionality.
source share